diff --git a/Scripts/7D2D-Manage.bash b/Scripts/7D2D-Manage.bash index eac696a..f40fb91 100644 --- a/Scripts/7D2D-Manage.bash +++ b/Scripts/7D2D-Manage.bash @@ -539,7 +539,9 @@ backup_configs() { log "info" "Backing up $(important ".xml configurations") in $(important "${server_directory}") to $(important "${config_backup_directory}")" mkdir -p "${config_backup_directory}" - find "${server_directory}" -name *.xml -not -path "${server_directory}/config-backups/*" -exec cp {} "${config_backup_directory}/" \; + for xml_file in "${server_directory}"/{"","Saves/"}*.xml; do + cp "${xml_file}" "${config_backup_directory}/" + done } backup() { @@ -639,7 +641,6 @@ view() { shift done - [[ -z "${server_id}" ]] && log "error" "No server id passed" && exit 1 local server_directory