Xcopy /e /c /h /i /v /r /y /q plugins Backup\%itdate%D\plugins\ Xcopy /e /c /h /i /v /r /y /q World Backup\%itdate%D\ Run the script, and check for the folder (default Backup).Edit the line in your config.yml in the essentials plugin folder to the same name as the file you just created for example: command: 'backup.bat'.Save this file as something like 'backup.bat' into your minecraft server folder (not plugins) making sure you choose to save as 'all files' not as a text document.Duplicate this line for as many worlds as you wish to backup.Replace 'World' on the first line with the name of the world you wish to backup.This backup format should be compatible with. This example doesn't zip up the backups but does create a separate folder for each backup. Hourly backups older than 2 days will be deleted, and weekly backups older than 2 weeks will be deleted. ![]() This batch file example creates a hourly backup and a daily backup. If you are creating a custom backup script for the occasion it would be sensible to place it in this folder and use relative links to the world folders below. Any commands available to this folder can be run, as well as any commands available in the global path. ![]() With Craftbukkit on Windows the backup command will be run from Craftbukkit's location rather than from essentials or the configuration folders. The easiest way to create a backup script in Windows is to create a bat or batch file. ![]() There is no way to run arbitrary console commands, but if you use the following syntax, Essentials will do the normal force save all, but won't try to run any backup script. If you don't want to actually use a backup script, you can use Essentials Backup to force a regular save. # Add a command that backups your data, e.g. The interval and the command.Įxample # Backup runs a command while saving is disabled You need to configure 2 settings for the backup script to work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |