Windows 7 backup files

首先写好一个打包和copy的脚本"backup_ftp.bat"。
"C:\Program Files\7-Zip\7z" a "C:\Users\home\FTP_BACKUP_"%date:~10,4%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%".7z" "C:\Users\home\needbackup"
copy "C:\Users\home\*.7z" W:\**
del "C:\Users\home\*.7z"
pause;

再添加一个windows的schedule
SchTasks /Create /SC DAILY /TN BackUpFtp /TR "C:\Users\home\backup_ftp.bat" /ST 12:00

你可能感兴趣的:(windows,脚本)