Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.85 KB | None | 0 0
  1. @echo off
  2. color a
  3. title Backup
  4. cls
  5.  
  6. :backup
  7. title Menu
  8. cls
  9. echo.
  10. echo ------------------------------------
  11. echo MAKE SURE ALL SERVERS AREN'T RUNNING
  12. echo ------------------------------------
  13. echo.
  14. echo.
  15. set /p ask="Are you sure you want to backup all servers? (Y/N) -> "
  16. if %ask%== y goto Yes
  17. if %ask%== Y goto Yes
  18. if %ask%== n exit
  19. if %ask%== N exit
  20. goto backup
  21.  
  22. :Yes
  23. title Copying Files...
  24. cls
  25. rename c:\Users\PlexusMCServer\desktop\PlexusServer "DO-NOT-TOUCH Backing Up"
  26. xcopy c:\Users\PlexusMCServer\desktop\"DO-NOT-TOUCH Backing Up" d:\Backups\ /o /x /e /h /k /y
  27. rename D:\Backups\Servers "Backup %date:~4,2%-%date:~7,2%-%date:~10,4% %time:~0,2%%time:~3,2%%time:~6,2%"
  28. rename c:\Users\PlexusMCServer\desktop\"DO-NOT-TOUCH Backing Up" "PlexusServer"
  29. echo.
  30. echo.
  31. echo.
  32. title Completed
  33. echo Backup Successfully Completed.
  34. pause
  35. goto backup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement