File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ postgresql_backup_local_dir: ~postgres/backup
5
5
postgresql_backup_active_dir : " {{ postgresql_backup_local_dir }}/active"
6
6
postgresql_backup_mail_recipient : postgres
7
7
postgresql_backup_rotate : true
8
+
9
+ postgresql_archive_wal_rsync_args : ' --ignore-existing -ptg --info=skip1'
Original file line number Diff line number Diff line change 51
51
echo " archive-WAL $$ " > $mutex
52
52
53
53
# 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
55
55
echo " $backup_dir /$file already exists, overwriting is not allowed" | mail -s " $server : WAL archive failed" $mailto
56
56
rm -f $mutex
57
57
exit 1
You can’t perform that action at this time.
0 commit comments