Skip to content

Commit

Permalink
Merge pull request #259 from Dashboy1998/Exclude-game-backup-in-cron-…
Browse files Browse the repository at this point in the history
…backup

Exclude save backup directory in backup
  • Loading branch information
jammsen authored Apr 9, 2024
2 parents 8da70d6 + 9b89253 commit e4f82df
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 e4f82df

Please sign in to comment.