Exolius / SimpleBackup

A bukkit plugin to zip up specified maps at regular intervals.
20 stars 19 forks source link

Backup Hooks #26

Closed euank closed 7 years ago

euank commented 11 years ago

I found myself wanting to copy all backed up files to a different server for obvious reasons, but I also realized that I might get only 'partial' files if my backup script ran at the same time as your plugin.

The solution, of course, was to modify your plugin to run a configurable command on completion. If the new config option, for example, were set to '/home/minecraft/scp-backup.sh' containing 'scp $@ remoteBackupServer:backups' then this should copy all files over to my backup server. There are more applications obviously, but offsite copies seems like a useful one.

Default behavior is to do nothing so that it doesn't get in the way if you don't want it.

Cheers!

mantun commented 10 years ago

Looks fine to me, thanks

luckydonald commented 8 years ago

@Exolius is there a reason this isn't merged?

euank commented 8 years ago

@Exolius will this ever be merged, or should I close this?