Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

wal-g: Update pg_backup_and_purge for wal-g format.

Alex Vandivera5d63cfedf70
diff --git a/puppet/zulip/files/postgresql/pg_backup_and_purge b/puppet/zulip/files/postgresql/pg_backup_and_purge
index aed7c204802..314135f1811 100755
--- a/puppet/zulip/files/postgresql/pg_backup_and_purge
+++ b/puppet/zulip/files/postgresql/pg_backup_and_purge
@@ -56,7 +56,7 @@ backups: Dict[datetime, str] = {}
lines = run(['env-wal-g', 'backup-list']).split("\n")
for line in lines[1:]:
if line:
- backup_name, date_str, _, _ = line.split()
+ backup_name, date_str, _ = line.split()
backups[dateutil.parser.parse(date_str)] = backup_name
one_month_ago = now - timedelta(days=30)