Skip to content

Instantly share code, notes, and snippets.

@mikegee
Created October 27, 2008 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikegee/20114 to your computer and use it in GitHub Desktop.
Save mikegee/20114 to your computer and use it in GitHub Desktop.
set drive=V:
set dayofweek=%DATE:~0,3%
set excludeddirs=AppData .svn .metadata
net use %drive% \\gromit\backup /SAVECRED
robocopy "%USERPROFILE%" "%drive%\PC\%dayofweek%" /MIR /R:0 /FFT /XD %excludeddirs%
net use %drive% /DELETE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment