From 0d6280ec573cc884af62fb35009c623e0222d529 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Thu, 31 May 2012 04:26:56 +0100 Subject: [PATCH] Fixes server "worlds backup" command. It was not wrapped in server messages and "save off/on" stuff. Also added output which shows how long the backup tool. --- msm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/msm b/msm index 34e447b..fad80ec 100755 --- a/msm +++ b/msm @@ -1635,7 +1635,21 @@ main() { server_save_on $id ;; backup) + if server_is_running $id; then + server_eval $id "say ${server_world_backup_started[$id]}" + server_save_off $id + server_save_all $id + fi + + server_worlds_to_disk $id server_worlds_backup $id + + if server_is_running $id; then + server_save_on $id + server_eval $id "say ${server_world_backup_finished[$id]}" + fi + + echo "Backup took $SECONDS seconds". ;; *) echo "Invalid command."