tgxn / Backup

A Backup plugin for the Bukkit Server API.
http://bukkitbackup.com
GNU General Public License v3.0
23 stars 14 forks source link

Seems to think folder already exists #86

Closed jvperrin closed 12 years ago

jvperrin commented 12 years ago

Here's the error I get every time it tries to backup:

2012-03-10 10:01:28 [SEVERE] null
java.io.IOException: Source 'webackups/Creative/2012-03-10-10-01' and destination 'webackups/Creative/2012-03-10-10-01' are the same
at net.tgxn.bukkit.backup.utils.FileUtils.copyDirectory(FileUtils.java:206)
at net.tgxn.bukkit.backup.utils.FileUtils.copyDirectory(FileUtils.java:141)
at net.tgxn.bukkit.backup.utils.FileUtils.copyDirectory(FileUtils.java:110)
at net.tgxn.bukkit.backup.threading.BackupTask.doCopyAndZIP(BackupTask.java:376)
at net.tgxn.bukkit.backup.threading.BackupTask.backupWorlds(BackupTask.java:221)
at net.tgxn.bukkit.backup.threading.BackupTask.processBackup(BackupTask.java:110)
at net.tgxn.bukkit.backup.threading.BackupTask.run(BackupTask.java:95)
at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
at java.lang.Thread.run(Thread.java:679)

Here's my configuration:

backupinterval: 30M
maxbackups: 80
backupemptyserver: false
backupeverything: false
onlyops: true
enableautosave: true
alwayssaveall: false
splitbackup: true
zipbackup: false
backuppath: webackups
usetempfolder: false
dateformat: '%1$tY-%1$tm-%1$td-%1$tH-%1$tM'
backupworlds: true
backupplugins: false
skipworlds:
skipplugins: dynmap
displaylog: true
logtofile: false
backuplogname: backup.log
notifyallplayers: true
showconfigonstartup: false
requiredstrings: str-29
version: 1.8.6

Despite it saying it is version 1.8.6, it actually has 1.8.8 jar... It also seems to delete my backup folder (which is an issue that I know others have had) and it still throws this error whether or not the backup folder exists.

tgxn commented 12 years ago

Re-Create your config & strings.

jvperrin commented 12 years ago

Yeah, that seems to fix it. Does config generate new items automatically now? I saw an update feature in the config, so it looks like it might do.

Anyway, thanks for fixing my problem!

tgxn commented 12 years ago

Not a worry, I need to add better handling for config and strings file updates. It's a bit crappy currently.