Skip to content

Instantly share code, notes, and snippets.

@scuq
Created October 11, 2015 21:01
Show Gist options
  • Save scuq/f7e5545d03ee07dd844e to your computer and use it in GitHub Desktop.
Save scuq/f7e5545d03ee07dd844e to your computer and use it in GitHub Desktop.
backup %appdata% with 7z
taskkill /F /T /IM firefox.exe
taskkill /F /T /IM application.xyz
taskkill /F /T /IM application2.xyz
set backuplib="z:\backup\"
set SAVESTAMP=%DATE:/=-%@%TIME::=-%
"7z.exe" a -r %backuplib%appdata_%SAVESTAMP%.7z %appdata%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment