Running robocopy after backup.
Posted: Sat Nov 19, 2016 8:06 pm
hello - thank you for reading my post.
I have a batch file which works, making an image of my system disc to my backup drive.
start "" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\imagew64.exe" /b /d:w1 /f:"B:\Image For Windows Test\Backup-w1-$~YYYY$-$~MM$-$~DD$-$~HHMM$" /vb /comp:2 /purge:-7 /desc:"Oct-Core System Disc"
This line works mirroring the folder to a secondary location -
robocopy "B:\Image For Windows Test" "\\freenas\Working\Image For Windows Test" /mir
The commands can be run correctly separately. When they are both in the same batch file the backup works but the mirror doesn't - the windows closes instantly.
Hopefully someone can help - basically i want a batch file to backup my drive and when this is finished - mirror to the secondary location. This is my attempt so far-
start "" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\imagew64.exe" /b /d:w1 /f:"B:\Image For Windows Test\Backup-w1-$~YYYY$-$~MM$-$~DD$-$~HHMM$" /vb /comp:2 /purge:-7 /desc:"Oct-Core System Disc"
robocopy "B:\Image For Windows Test" "\\freenas\Working\Image For Windows Test" /mir
I have a batch file which works, making an image of my system disc to my backup drive.
start "" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\imagew64.exe" /b /d:w1 /f:"B:\Image For Windows Test\Backup-w1-$~YYYY$-$~MM$-$~DD$-$~HHMM$" /vb /comp:2 /purge:-7 /desc:"Oct-Core System Disc"
This line works mirroring the folder to a secondary location -
robocopy "B:\Image For Windows Test" "\\freenas\Working\Image For Windows Test" /mir
The commands can be run correctly separately. When they are both in the same batch file the backup works but the mirror doesn't - the windows closes instantly.
Hopefully someone can help - basically i want a batch file to backup my drive and when this is finished - mirror to the secondary location. This is my attempt so far-
start "" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\imagew64.exe" /b /d:w1 /f:"B:\Image For Windows Test\Backup-w1-$~YYYY$-$~MM$-$~DD$-$~HHMM$" /vb /comp:2 /purge:-7 /desc:"Oct-Core System Disc"
robocopy "B:\Image For Windows Test" "\\freenas\Working\Image For Windows Test" /mir