We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f33e00b commit 4e80046Copy full SHA for 4e80046
templates/backup_working_wal.sh.j2
@@ -7,7 +7,7 @@ xlog_dir='{{ postgresql_pgdata }}/pg_xlog'
7
backup_dir='{{ postgresql_backup_active_dir }}'
8
mailto='{{ postgresql_backup_mail_recipient }}'
9
10
-active=`ls -1rt $xlog_dir | tail -1`
+active=`ls -1rtF $xlog_dir | grep -v '/$' | tail -1`
11
12
out=`cp -p $xlog_dir/$active $backup_dir/$active 2>&1`
13
ret=$?
0 commit comments