Skip to content

Commit 7a65cf9

Browse files
timestamp option remove comment
1 parent 8fcd61b commit 7a65cf9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

rotate_backups/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,6 @@ def collect_backups(self, location):
564564
location.ensure_readable()
565565
pattern=re.compile(self.timestamp, re.VERBOSE)
566566
for entry in natsort(location.context.list_entries(location.directory)):
567-
# match = TIMESTAMP_PATTERN.search(entry)
568567
match = pattern.search( entry)
569568
if match:
570569
if self.exclude_list and any(fnmatch.fnmatch(entry, p) for p in self.exclude_list):

rotate_backups/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def main():
214214
selected_locations = []
215215
# Parse the command line arguments.
216216
try:
217-
options, arguments = getopt.getopt(sys.argv[1:], 'M:H:d:w:m:y:tI:x:jpri:c:r:uC:nvqh', [
217+
options, arguments = getopt.getopt(sys.argv[1:], 'M:H:d:w:m:y:t:I:x:jpri:c:r:uC:nvqh', [
218218
'minutely=', 'hourly=', 'daily=', 'weekly=', 'monthly=', 'yearly=',
219219
'timestamp=', 'include=', 'exclude=', 'parallel', 'prefer-recent', 'relaxed',
220220
'ionice=', 'config=', 'use-sudo', 'dry-run', 'removal-command=',

0 commit comments

Comments
 (0)