From f3e85478fba7c7a4a7c8f8ec5912f21eae5248fc Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 1 Jan 2022 04:31:30 -0600 Subject: [PATCH] Exclude config backups from backup --- Scripts/7D2D-Manage.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/7D2D-Manage.bash b/Scripts/7D2D-Manage.bash index 801bc59..eac696a 100644 --- a/Scripts/7D2D-Manage.bash +++ b/Scripts/7D2D-Manage.bash @@ -539,7 +539,7 @@ 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 -exec cp {} "${config_backup_directory}/" \; + find "${server_directory}" -name *.xml -not -path "${server_directory}/config-backups/*" -exec cp {} "${config_backup_directory}/" \; } backup() {