jxycms
3/5/2017 - 10:07 PM

use javascript and windows schedule task to backup files from online server

use javascript and windows schedule task to backup files from online server

in ftpscript.txt

option batch continue
option confirm off
open ironfish_ftp@54.206.66.184
mkdir test_new
lcd E:\Automated-Backups\Ironfish\Files\
get /test_new E:\Automated-Backups\Ironfish\Files\
rmdir test_new
get /* E:\Automated-Backups\Ironfish\Files\test_new\
exit

in ftprun.cmd

E:\Automated-Backups\Ironfish\Scripts\WinSCP\WinSCP.com /script=E:\Automated-Backups\Ironfish\Scripts\ftpscript.txt

in changefoldername.bat

ren "E:\Automated-Backups\Ironfish\Files\test_new" "test_new-%date:~10,4%%date:~7,2%%date:~4,2%_%time:~0,2%%time:~3,2%"