Exclude config backups from backup

This commit is contained in:
Price Hiller 2022-01-01 04:31:30 -06:00
parent f2355c0cba
commit f3e85478fb

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}"
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() {