Link to home
Start Free TrialLog in
Avatar of ECIQue
ECIQue

asked on

FTP folder file backukp

I have a ftp server.
I update the data there from different locations.
Each user has their directory.

I want to write a script which I can schedule to backup my data.

I am on a windows XP box.
My Server is 2003.

The answer that can provide me with the scirpt will get the points.

-------------------------------------------------------------------
Hyperlinks do not count as answers.
It is not possible does not count as an answer.
-------------------------------------------------------------------

Thanking You
Smit.
SOLUTION
Avatar of adonis1976
adonis1976

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of adonis1976
adonis1976

btw, xxx.xx.xx.xx stands for the IP address of the remote server
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ECIQue

ASKER

adonis1976
  Your script gets files only from that folder
  It does not do a recursive ftp.

_nn_
  Your program works.
  I like it,
  but then, I try avoiding third party softares.
  So, if adonis cant come up with a script by tommorrow,
  You will have the points.
ok.. try this..

replace the line

mget *.*

with

get -r *.*
that is get space -r *.*
Avatar of ECIQue

ASKER

ftp> get -r *.*
Error opening local file *.*.
> *.*:Invalid argument
ftp> bye
221

Avatar of ECIQue

ASKER

i did type in
ftp> get [space] -r *.*

thanks.
i just looked at the MAN pages for ftp and it is not possible since the subdirectories are dependent on the file structure of the OS. So cany copy sub directories using ftp. so you can award -nn- if you wish.
Avatar of ECIQue

ASKER

You get Partial credits atleast for an honest answer.

Thank you experts

Always
Smit.
spend some money on software. (if its worth doing right)
I recommend handy-backup.