Exclude config backups from backup
This commit is contained in:
parent
f2355c0cba
commit
f3e85478fb
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user