Tuesday, December 11, 2012

Simple robocopy mirror

Simple batch script I run to mirror a local directory containing SQL flat file backups to a network share though it can be used to sync anything.
net use x: "\\10.20.30.40\path\replicated_sql_backups" /u:domain\username password
robocopy "C:\local_sql_backups" x: /MIR /FFT /Z /W:5
net use x: /delete

No comments:

Post a Comment