Skip to content

Commit

Permalink
Exclude save backup directory in backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dashboy1998 committed Apr 7, 2024
1 parent 12418a7 commit 9b89253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/backupmanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b89253

Please sign in to comment.