Skip to content

Commit 4e80046

Browse files
committed
Exclude directories (pg_xlog/archive_status/) from working WAL backups.
1 parent f33e00b commit 4e80046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/backup_working_wal.sh.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ xlog_dir='{{ postgresql_pgdata }}/pg_xlog'
77
backup_dir='{{ postgresql_backup_active_dir }}'
88
mailto='{{ postgresql_backup_mail_recipient }}'
99

10-
active=`ls -1rt $xlog_dir | tail -1`
10+
active=`ls -1rtF $xlog_dir | grep -v '/$' | tail -1`
1111

1212
out=`cp -p $xlog_dir/$active $backup_dir/$active 2>&1`
1313
ret=$?

0 commit comments

Comments
 (0)