Skip to content

Commit

Permalink
verify backups to work on latest list of backups
Browse files Browse the repository at this point in the history
when tables rotate, it creates a final backup of last active table.
verify backups was not having that last backup in the list so this change makes sure it has
latest list of backups
  • Loading branch information
sandeepsukhani committed Sep 27, 2019
1 parent 0cfa33d commit 3e0621e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/bigtable-backup/bigtable-backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def ensure_backups(args):
bigtable_backup_job_last_active_table_backup_time_seconds.set_to_current_time()

num_backups_deleted = 0


# list backups again to verify them below
backups = list_backups(args.destination_path)

print("Checking whether all the backups are created after their period is over and deleting old unwanted backups")
for table_id, timestamps in backups.items():
table_number = int(table_id.rsplit("_", 1)[-1])
Expand Down

0 comments on commit 3e0621e

Please sign in to comment.