Only include .xml confs that we care about in backups
This commit is contained in:
parent
f3e85478fb
commit
2a72d725c0
@ -539,7 +539,9 @@ 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 -not -path "${server_directory}/config-backups/*" -exec cp {} "${config_backup_directory}/" \;
|
||||
for xml_file in "${server_directory}"/{"","Saves/"}*.xml; do
|
||||
cp "${xml_file}" "${config_backup_directory}/"
|
||||
done
|
||||
}
|
||||
|
||||
backup() {
|
||||
@ -639,7 +641,6 @@ view() {
|
||||
shift
|
||||
done
|
||||
|
||||
|
||||
[[ -z "${server_id}" ]] && log "error" "No server id passed" && exit 1
|
||||
|
||||
local server_directory
|
||||
|
Loading…
Reference in New Issue
Block a user