my old bat script

Under windows it can bee usefull (otherwise rsync power)

@echo
:: variables
set sourcedrive=D:\
set backupdrive=\\servername\d$
set backupcmd=xcopy /s /c /d /e /h /i /r /y
set logfile=D:\backup_log_file.txt

echo %Date% # # # Moving files >> %logfile%
%backupcmd% “%sourcedrive%\directory_to_backup” “%backupdrive%\directory_to_store_backup” >> %logfile%

echo %Date% # # Moveing Complete! >> %logfile%

 

This entry was posted in Misc. Bookmark the permalink.

Leave a Reply