Xcopy backup script
Posted on 2007-11-30
I have a batch file that runs xcopy and copies files/folders from one server to another this batch file is scheduled with task scheduler.
I need someone to help elaborate this batch file so that it will be able to do the following tasks:
-it will create a text file that will serve as a log.
the log will show the start time of the xcopy backup and the end time.
-it will compare the size of the source and destination and logs their sizem in the text file I previously mentionned.
- it will send email to email@example.com with the content of the text file.
the batch file code is:
xcopy /D /s /H I:\source \\servername\destination