Skip to content

Commit

Permalink
Also process backups compressed with zstd (fixes #520)
Browse files Browse the repository at this point in the history
  • Loading branch information
baszoetekouw committed Aug 6, 2024
1 parent 8509455 commit 3b0b096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/backups/templates/upload-backup.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ HOSTNAME=$( hostname )
cd "$BACKUP_DIR"

# find all backup files that were created more recently dan 30 minutes ago
files=$( find -mindepth 2 -name '*.gz' -o -name '*.bz2' -cmin -30 )
files=$( find -mindepth 2 -cmin -30 '(' -name '*.gz' -o -name '*.bz2' -o -name '*.zst' ')' )

if [ -z "$files" ]
then
Expand Down

0 comments on commit 3b0b096

Please sign in to comment.