Exolius/SimpleBackup — pull request #26 by euank (2013-06-02 09:04:56+00:00)
Title: Backup Hooks

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!