Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- color a
- title Backup
- cls
- :backup
- title Menu
- cls
- echo.
- echo ------------------------------------
- echo MAKE SURE ALL SERVERS AREN'T RUNNING
- echo ------------------------------------
- echo.
- echo.
- set /p ask="Are you sure you want to backup all servers? (Y/N) -> "
- if %ask%== y goto Yes
- if %ask%== Y goto Yes
- if %ask%== n exit
- if %ask%== N exit
- goto backup
- :Yes
- title Copying Files...
- cls
- rename c:\Users\PlexusMCServer\desktop\PlexusServer "DO-NOT-TOUCH Backing Up"
- xcopy c:\Users\PlexusMCServer\desktop\"DO-NOT-TOUCH Backing Up" d:\Backups\ /o /x /e /h /k /y
- rename D:\Backups\Servers "Backup %date:~4,2%-%date:~7,2%-%date:~10,4% %time:~0,2%%time:~3,2%%time:~6,2%"
- rename c:\Users\PlexusMCServer\desktop\"DO-NOT-TOUCH Backing Up" "PlexusServer"
- echo.
- echo.
- echo.
- title Completed
- echo Backup Successfully Completed.
- pause
- goto backup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement