Skip to content

Instantly share code, notes, and snippets.

@manualbashing
Created March 28, 2020 13:55
Show Gist options
  • Select an option

  • Save manualbashing/e9a2437c6c2f519ea640d71bd41c2528 to your computer and use it in GitHub Desktop.

Select an option

Save manualbashing/e9a2437c6c2f519ea640d71bd41c2528 to your computer and use it in GitHub Desktop.
Robocopy simple backup
@echo off
cls
echo Backup starten? ([y]/n)
set INPUT=
set /P INPUT=Type input: %=%
If /I "%INPUT%"=="n" goto end
Robocopy A:\ B:\ /MIR /w:5 /r:5 /Z /V /NFL /NDL /XD "$RECYCLE.BIN" "System Volume Information"
:end
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment