February 23rd, 2014, 05:39 PM
In cmd, you can access the ftp of a server. I need a .bat file to download the ENTIRE directory when run. Please give code for the .bat file as a reply. I will set it up to where the file runs every hour on my pc (which is rarely used now) so I will have a backup of the files. Any other suggestions if not the .bat code? I want the computer to sleep, then the .bat execute, then after ftp download go back to sleep.
February 23rd, 2014, 07:16 PM
And what did your last slave die of?
You don't say what the target OS is (it may matter), you don't say why you want to, potentially, backup the same directory on an hourly basis (there may be better ideas).
No idea about how to get it run as a timed process under Windows, but I assume you'd do it via Task Scheduler.
The batch file would look something like:
ftp -n IP/hostname
user USERNAME PASSWORD
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc
March 1st, 2014, 01:23 PM
It never logs in.
ftp -n ftp.frostbitetech.org
user username password