FTP with xcopy?

G

Guest

Hi, can someone tell me if I can set up xcopy to ftp files from a local
directory to a remote directory? I use aceFTP, but I'm not sure how to get
the two together, or if that's even possible. Maybe there's some other,
easier way of automating a regular FTP backup?
Thanks!
 
P

Pegasus \(MVP\)

dj_bell said:
Hi, can someone tell me if I can set up xcopy to ftp files from a local
directory to a remote directory? I use aceFTP, but I'm not sure how to get
the two together, or if that's even possible. Maybe there's some other,
easier way of automating a regular FTP backup?
Thanks!

The usual way is to set up a VPN (Virtual Private Network).
 
M

Mark Dormer

Just use FTP to do it.
You can schedule it using the task scheduler.
IF you want to do some other operation first then use a batch file to do
that and then call the ftp program.

Create a text file with the FTP commands in it and call it like this;
ftp -s:myfile.txt

The myfile.txt should contain something like this

lcd c:\directoryyouwanttocopyfrom
open ftp.yourserver.com
username
password
cd directoryonftpserver
prompt
binary
mput *.*
bye

If this is confusing let me know

Regards
Mark Dormer
 
G

Guest

I think I get it. First I create a myfile.txt as you've directed below.
Then, for the "calling" part, I create a ftp.bat file that reads:
ftp -s:myfile.txt

Then I set the scheduler to run the ftp.bat file?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top