Last active
November 30, 2016 15:51
-
-
Save josheby/c6e9b34cca914b3bbcf7ff61d8803591 to your computer and use it in GitHub Desktop.
Automatic Hard Drive Snapshots to Drobo Using DriveSnapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd "C:\Scripts" | |
net use Z: \\SE-DROBO\SE-BACKUP /user:backup YourPasswordHere | |
snapshot C:+D: Z:\Snapshot-$date-$disk.sna -L0 -R -T -W --UseVSS --LogFile:C:\Scripts\snapshot.log | |
forfiles /p Z:\ /s /m *.* /d -30 /c "cmd /c del @path" | |
net use Z: /delete /yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment