将以下代码保存为BAT文件,并在计划任务中定时执行。
123456789101112131415 ::压缩数据库"C:\Program Files\7-Zip\7z.exe" aE:\backup\SQL_backup_%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%.7zE:\backup\SQL_backup_%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%0030.bak::异机备份net use Y: \\ "PASSWORD" /user:"USERNAME"copy E:\backup\SQL_backup_%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%.7z Y:\net use Y: /del
© 2017, ITJOY.NET. 版权所有. 如未注明,均为原创,转载请注明出处。