Guest User

Untitled

a guest
May 22nd, 2017
15
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rem @echo off
  2.  
  3. echo Script de backup
  4.  
  5. set DATE_PREFIX=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%
  6.  
  7. set BACKUP_ROOT=G:\backup\%COMPUTERNAME%
  8. set BACKUP_FOLDER=%BACKUP_ROOT%\%DATE_PREFIX%
  9.  
  10. set SEVENZIP=C:\Program Files\7-Zip\7z.exe
  11. set SEVENZIP_ARGS=a -t7z -mx=9 -ms=off -mmt=on -mtc=on -myx=9 "-m0=LZMA2" -bsp2 -bse1 "-xr!*\Thumbs.db"
  12. "%SEVENZIP%" %SEVENZIP_ARGS% "-x!*\NTUSER.DAT*" "-x!*\AppData\Local\Temp" -- "%BACKUP_FOLDER%\settings.7z" C:\Users\Administrateur > "%BACKUP_FOLDER%\settings.log"
RAW Paste Data