From 9b89253039c2a65509a26a45555d5c98371a0ab8 Mon Sep 17 00:00:00 2001 From: Dashboy1998 <18587674+Dashboy1998@users.noreply.github.com> Date: Sun, 7 Apr 2024 14:28:56 -0400 Subject: [PATCH] Exclude save backup directory in backup --- scripts/backupmanager.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backupmanager.sh b/scripts/backupmanager.sh index 733d2dc..5b21b21 100644 --- a/scripts/backupmanager.sh +++ b/scripts/backupmanager.sh @@ -144,7 +144,7 @@ function create_backup() { sleep 15 rconcli broadcast "$(get_time) Creating backup..." - if ! tar cfz "${LOCAL_BACKUP_PATH}/${backup_file_name}" -C "${LOCAL_GAME_PATH}/" "Saved" ; then + if ! tar cfz "${LOCAL_BACKUP_PATH}/${backup_file_name}" -C "${LOCAL_GAME_PATH}/" --exclude "backup" "Saved" ; then broadcast_backup_failed ee ">>> Backup failed" else