Improved server "backup" command.

Now ensures worlds are copied to disk, and outputs the time the backup
took.
This commit is contained in:
Marcus Whybrow 2012-05-31 04:27:58 +01:00
parent 0d6280ec57
commit 8da09a9c73

3
msm
View File

@ -1666,12 +1666,15 @@ main() {
server_save_all $id
fi
server_worlds_to_disk $id
server_backup $id
if server_is_running $id; then
server_save_on $id
server_eval $id "say ${server_complete_backup_finished[$id]}"
fi
echo "Backup took $SECONDS seconds".
;;
jar)
if [ -z "$3" ]; then