From 48fffef6578450c5fdb2ac9ee6051e25aa6e451d Mon Sep 17 00:00:00 2001 From: petergardfjall Date: Thu, 8 Jan 2015 20:26:15 +0100 Subject: [PATCH] fixed bug in incremental backup --- incremental_backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/incremental_backup.py b/incremental_backup.py index 7a53f4e..5ef9a88 100755 --- a/incremental_backup.py +++ b/incremental_backup.py @@ -33,8 +33,8 @@ def get_backed_up_ids(backup_dir): :rtype: list of int """ - # backed up activities follow this pattern - activity_file_pattern = r'[0-9]+\-[0-9]+_([0-9]+)_summary\.json' + # backed up activities follow this pattern: __summary.json + activity_file_pattern = r'[\d:T\+\-]+_([0-9]+)_summary\.json' backed_up_ids = [] dir_entries = os.listdir(backup_dir)