AutoBackup documentation page
Note:By default AutoBackup is disabled!
AutoBackup backups your worlds folders, by default backups are located at the folder {your server folder}/backups/.
backups of worlds are stored in the folder {backupfolder}/worlds , using WorldEdit snapshot folder structure
backups of plugins are stored in the folder {backupfolder}/plugins
Command
/asw backup (performs a backup manually)
Permission: autosaveworld.backup
Config values: (config.yml)
backup: enabled: false #enable or disable autobackup interval: 21600 #interval in seconds between autobackups savebefore: true #forces save before doing backup broadcast: true #broadcast message before and after the backup rateLimit: -1 #limits the read rate (kb/s, -1 for unlimited) localfs: enabled: true #enable backup to local filesystem worlds: #list of worlds to backup, '*' - backup all worlds - '*' MaxNumberOfWorldsBackups: 30 #maximum number of worlds backups, after reaching this limit, plugin will delete the oldest one and then create a new. pluginsfolder: false #backups plugins folder MaxNumberOfPluginsBackups: 30 #maximum number of plugins backups, after reaching this limit, plugin will delete the oldest one and then create a new. excludefolders: [] #list of paths to folders excluded from backup destinationfolders: [] #list of destinationfolders folders to backup to zip: false #zip backuped folders. ftp: enabled: false #enable backup to ftp sftp: true #uses sftp backup hostname: 127.0.0.1 #ftp server hostname port: 21 #ftp server port login: user #ftp server username/login password: password #ftp server password path: asw #path at ftp server at which backups will be stored zip: false #zip bakuped folders worlds: #list of worlds to backup, '*' - backup all worlds - '*' pluginsfolder: false #backup plugins folder otherfolders: [] #list of other folders to backup excludefolders: [] #list of paths to folders excluded from backup maxNumberOfBackups: 2 #maximum number of backups, after reaching this limit, plugin will delete the oldest one and then create a new. script: enabled: true #enable script backup scriptpaths: [] '' #paths to the scripts to execute dropbox: enabled: false #enable backup to dropbox token: #your own app token(get one by creating your own app with full access at https://www.dropbox.com/developers/apps) path: asw #path at dropbox at which backups will be stored worlds: #list of worlds to backup, '*' - backup all worlds - '*' pluginsfolder: false #backup plugins folder otherfolders: [] #list of other folders to backup excludefolders: [] #list of paths to folders excluded from backup maxNumberOfBackups: 2 #maximum number of backups, after reaching this limit, plugin will delete the oldest one and then create a new. zip: true #zip bakuped folders
excludefolders example:
excludefolders: - 'plugins/Essentials' - 'plugins/dynmap/web/tiles' - 'plugins/A*' #wildcard, will ignore any folders which are in plugin folder and which names starts with A
destinationfolders example:
destinationfolders: - 'D:/test' - '/home/serv/test'
@Shevchikden
https://dl.dropboxusercontent.com/u/16887445/aswbackup.png
https://dl.dropboxusercontent.com/u/16887445/config.yml
@xllluzionx
It should be
People don't even read examples these days. *sigh*
@Shevchikden
Oh my gosh, how simple. I'm sorry, I looked your examples but only for syntax, I assumed the "-" was your way of making an organized list of different examples like: - Apples - Oranges I didn't realize the dash was actually necessary. Perhaps making an example like this would help people like me:
toextfolders: true disableintfolder: true extfolders: - '/Your/Backup/Path/Folder/Here'
@Shevchikden
Hey Shev This is my input
http://pastie.org/private/hsg59zid3sr52bmpfzmnq
This is my output
http://pastie.org/private/fgtq2m58r1rrjcqqoqy8fq
what should i do ive tried many different ways but cant get it to work
i changed the line to this but its still doesn't work extfolders: - 'D:\Backups' it says it reloaded fine but i keeps deleting that file
@ktechwhiz
when I make a backup my server crashes D: Any help?
@zaino60
Stacktraces, logs?
Hi, can you help me please? I would like to exclude the folder, but I get this error message
2013-10-27 02:29:50 [INFO] [AutoSaveWorld] Enabling AutoSaveWorld v4.1 2013-10-27 02:29:50 [SEVERE] Cannot load plugins/AutoSaveWorld/config.yml org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping in "<string>", line 14, column 5: enabled: true ^ expected <block end>, but found BlockEntry in "<string>", line 21, column 5: - 'plugins/dynmap/web/tiles' ^
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105) at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:175) at autosaveworld.config.AutoSaveConfig.load(AutoSaveConfig.java:120) at autosaveworld.core.AutoSaveWorld.onEnable(AutoSaveWorld.java:94) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugin(CraftServer.java:284) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.enablePlugins(CraftServer.java:266) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.<init>(CraftServer.java:220) at net.minecraft.server.v1_6_R3.PlayerList.<init>(PlayerList.java:56) at net.minecraft.server.v1_6_R3.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.java:107) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:393) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: while parsing a block mapping in "<string>", line 14, column 5: enabled: true ^ expected <block end>, but found BlockEntry in "<string>", line 21, column 5: - 'plugins/dynmap/web/tiles' ^
at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:575) at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146) at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230) at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123) at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106) at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121) at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) ... 16 more
@SPUK1 Check if your config is in valid YAML format.
does the ftp backup do endless backups or would we set some limits to it?
@LemADEC
currently only endless backups, but you can set a limit in development version.
Hi @Shevchikden, is the keyword destinationfolders or extfolders now?
@monotonehell destinationfolders
The destinationfolder does not work, for me i am running 1.5.2
@Arton123
Does it tell something when it tries to backup?
Enable debug and try backup again there should be something
@Shevchikden
There you go: http://pastebin.com/3pXcDTdz
@Arton123
Judging from what i see, it works. There should be a folder named backups, check it.
Can worlds backup while the server is running or does it close the server?
@Shevchikden
Yea it should, but sadly it trows the backups on our ssd where the root server folder is, and not the defined place on our hdd :(
I'm currently using the Backup plugin, but I just read through your documentation and will be switching over (Backup is no longer being kept up-to-date, and has been throwing errors since Bukkit 1.6). However, a couple of features Backup has that I really like are that it can be configured to only perform backups while at least one player is logged in, and performs a backup a set interval of time after the last player logs off. Any chance these could be incorporated into AutoSaveWorld?
Great plugin! Thanks!