mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Altered server backup to zip the server directory itself, and not the contents.
This commit is contained in:
parent
a2e0b7c087
commit
b4db7c961e
2
msm
2
msm
@ -929,7 +929,7 @@ server_backup() {
|
||||
|
||||
# Zip up the server directory
|
||||
file_name="${server_backup_path[$1]}/$(date "+%F-%H-%M-%S").zip"
|
||||
as_user ${server_user_name[$1]} "mkdir -p \"${server_backup_path[$1]}\" && cd \"${server_path[$1]}\" && zip ${zip_flags} \"${file_name}\" ."
|
||||
as_user ${server_user_name[$1]} "mkdir -p \"${server_backup_path[$1]}\" && cd \"$SERVER_STORAGE_PATH\" && zip ${zip_flags} \"${file_name}\" \"${server_name[$1]}\""
|
||||
|
||||
echo "Done."
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user