Use Find to run backups on configurations

This commit is contained in:
Price Hiller 2022-01-01 03:54:11 -06:00
parent 60a2df9b70
commit da693fa937

View File

@ -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() {