Skip to content

Commit a383951

Browse files
committed
CentOS 7 is already too old... sigh.
1 parent 2f6ee1f commit a383951

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ postgresql_backup_local_dir: ~postgres/backup
55
postgresql_backup_active_dir: "{{ postgresql_backup_local_dir }}/active"
66
postgresql_backup_mail_recipient: postgres
77
postgresql_backup_rotate: true
8+
9+
postgresql_archive_wal_rsync_args: '--ignore-existing -ptg --info=skip1'

templates/archive_wal.sh.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ done
5151
echo "archive-WAL $$" > $mutex
5252

5353
# If rsync outputs anything to stdout, the destination already existed, which should not happen
54-
if [ -n "`handler rsync $remote_rsync --ignore-existing -ptg --info=skip1 $full_file $backup_dir`" ]; then
54+
if [ -n "`handler rsync $remote_rsync {{ postgresql_archive_wal_rsync_args }} $full_file $backup_dir`" ]; then
5555
echo "$backup_dir/$file already exists, overwriting is not allowed" | mail -s "$server: WAL archive failed" $mailto
5656
rm -f $mutex
5757
exit 1

0 commit comments

Comments
 (0)