From da693fa9376916b1b37e6c58b44db697d643faa7 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 1 Jan 2022 03:54:11 -0600 Subject: [PATCH] Use Find to run backups on configurations --- 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 5eefa97..8da4f30 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}" - cp "${server_directory}/"*.xml "${config_backup_directory}/" + find "${server_directory}" -name *.xml -exec cp {} "${config_backup_directory}/" \; } backup() {