From b27ced53abe32535d20bd8d8bb784e907c6cee03 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Thu, 31 May 2012 04:51:42 +0100 Subject: [PATCH] Fixed backups to be WorldEdit snapshot compatible. I mistakenly thought WorldEdit wanted the zip to directly contain the world files. In fact the zip should contain the directory itself. --- msm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msm b/msm index bf9fc64..1ae43e9 100755 --- a/msm +++ b/msm @@ -183,7 +183,8 @@ world_backup() { echo -n "Backing up world \"${world_name[$1]}\"... " file_name="$(date "+%F-%H-%M-%S").zip" - as_user ${server_user_name[${world_server_id[$1]}]} "mkdir -p \"${world_backup_path[$1]}\" && cd \"${world_path[$1]}\" && zip -rq \"${world_backup_path[$1]}/${file_name}\" ." + local server_id=${world_server_id[$1]} + as_user ${server_user_name[$server_id]} "mkdir -p \"${world_backup_path[$1]}\" && cd \"${server_world_storage[$server_id]}\" && zip -rq \"${world_backup_path[$1]}/${file_name}\" ${world_name[$1]}" echo "Done." }