Ok, so Essentials comes with a backup command that appears to do nothing. I started sifting through the Essentials code and found this:
# Backup runs a command while saving is disabled
backup:
# Interval in minutes
interval: 60
# Add a command that backups your data, e.g.
# command: 'rdiff-backup World1 backups/World1'
Now, I know that the command that is there is just an example, so what should I put there that would make it save a backup in the folder that I want (Let's say a folder named Server Backup on my desktop)?
1)In essentials under backup put command backup.bat
# Backup runs a command while saving is disabled
backup:
# Interval in minutes
interval: 60
# Add a command that backups your data, e.g.
command: 'backup.bat'
2)Open a new text document on your desktop 3)Copy and paste this into the text document
4)Change the "NAME" to the name of you computer 5)Save the text document as backup.bat 6)Put the backup.bat into the server folder - The server folder is the folder containing the world, plugins,craftbukkit.jar,run.bat
7)In console (or in game if op) run command "backup"
- When you do command "backup" it will run the"backup.bat" creating a file called "Backup" on your desktop containing seperate folders for the world, nether, end, and plugins. In the folder it will create the backup named with the date ofthe backup. The backup.bat will create hourly backups and weekly backups, hourly backups older that 2 days will be deleted and weekly backups older than 2 weeks will be deleted
I did this and i get 13:07:21 [INFO] Error: An external backup script has not been configured.
C:\Users\BigZ\Desktop\Bukkitserver\backup.bat is the place for it
these people veiwing this are probably beginners !
1. go inside essentials config.yml and go to the backup section and where it says "command:" YOU HAVE TO DELETE THE # BEFORE IT !!! THEN DO WHAT THEY SAID ABOVE THIS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Now, I know that the command that is there is just an example, so what should I put there that would make it save a backup in the folder that I want (Let's say a folder named Server Backup on my desktop)?
I did this and i get 13:07:21 [INFO] Error: An external backup script has not been configured.
C:\Users\BigZ\Desktop\Bukkitserver\backup.bat is the place for it
@ECHO OFF
SET itdate=%date:~-10%
SET itdate=%itdate:~6,4%-%itdate:~3,2%-%itdate:~0,2%
echo Current date: %itdate%
xcopy /e /c /h /i /v /r /y /q world C:\Users\Bigz\Desktop\Backup\Livingthedream\%itdate%D\
xcopy /e /c /h /i /v /r /y /q world_nether C:\Users\Bigz\Backup\Livingthedream_nether\%itdate%D\
xcopy /e /c /h /i /v /r /y /q world_the_end C:\Users\BIgz\Backup\Livingthedream_the_end\%itdate%D\
xcopy /e /c /h /i /v /r /y /q plugins Backup\%itdate%D\plugins\
SET hour=%time:~0,2%
IF "%hour:~0,1%" == " " SET hour=0%hour:~1,1%
xcopy /e /c /h /i /v /r /y /q Backup\%itdate%D Backup\%itdate%-%hour%H\
echo Backup Complete (assuming no errors above). Attempting to remove old files..
forfiles /p "Backup" /m "*H" /c "cmd /c rmdir /s /q @path" /d -2
forfiles /p "Backup" /m "*D" /c "cmd /c rmdir /s /q @path" /d -14
please assist
these people veiwing this are probably beginners !
1. go inside essentials config.yml and go to the backup section and where it says "command:" YOU HAVE TO DELETE THE # BEFORE IT !!! THEN DO WHAT THEY SAID ABOVE THIS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
xcopy /e /c /h /i /v /r /y /q world_the_end C:\Users\BIgz\Backup\Livingthedream_the_end\%itdate%D\
You Spelled your name wrong after "/Users\" here ^