1.

Solve : Automated Backup of a folder to an FTP site?

Answer»

Hello;

I want to create a FILE that I can run and have a folder backed up to an FTP server folder. My laptop to my FTP server. Obviously I have a Username and PASS to contend with, but I control them on both sides. Any Ideas. I thought about a batch file xcopy, but I believe this to be out of the CAPABILITIES of this.

Any help would be great

Thankshey,

my first idea would also be a batch file.
You know the ftp command?

If you go to CMD you can enter FTP and press enter.

use it like:
open myftpserver.com

oder write HELP

that should work in an batch file..

Good luck..I don't know your FILES or paths,here I give you a sample of batch file to upload file to ftp server.
(there is a forlder named "temp" on the server,and at this moment the "C:\boot.ini" is exist, and the server ip is "10.1.11.59",this is my static IP in LAN)

Code: [Select]rem **** first write the command to file: ftp.txt****
echo user user1>ftp.txt
echo pass1>>ftp.txt
echo cd /temp >>ftp.txt
echo put C:/boot.ini ini.boot /q>>ftp.txt
echo quit >>ftp.txt
rem **** user the -s SWITCH to read the command in ftp.txt****
ftp -n -s:ftp.txt 10.1.11.59
rem **** after that delete ftp.txt****
del ftp.txt

after running this batch file
there will be a new file name "ini.boot" in the folder(or directory) "temp" of the server(10.1.11.59).

you can modify it to MATCH your demand.



Discussion

No Comment Found