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." }