i run nightly backups using robocopy. my batch script works fine... stuff gets copied as it should...
except one item stopped working (it was working fine for a few weeks and then recently just stopped working). it's very weird. let me describe the batch file to give a clearer picture.
the batch file has several different things to back up... so it will back up folder X and then folder Y ... blah blah. when it gets to the folder in question (we'll call it folder Z), the batch file just stops. the log shows no error. the last thing in the log is the successful backup for folder Y. if there are other items in the batch file after folder Z, they don't get backed up... it's as if the batch file terminates when it encounters the command to backup folder Z.
so i copied the segment of the batch file dealing with folder Z to a separate batch file and initiated it. it ran fine.
i also moved the command for backing up folder Z so it was in a different order in the original batch file. the original batch file still terminates when it encounters the folder Z backup command.
here is the portion of the batch file which deals with "folder Z"
Rem Backup to duplicate database
net use y: \\qm_it\Mas90_on_qm_it /user:Owner qm_it
robocopy x:\DBServer\Mon \\qm_it\Mas90_on_qm_it /MIR /r:1 /w:1 >> c:\log\thu.txt
net use y: /delete
here is the full contents of the batch script:
Rem Backup Tserver
robocopy f:\data x:\Tserver\Data /MIR /r:1 /w:1 > c:\log\thu.txt
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.