Private GIT

Skip to content
Snippets Groups Projects
Commit 7c38ad1c authored by Ruud's avatar Ruud
Browse files

Remove non-int backup folders. closes #1298

parent 647159e5
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En
total_backups = len(backups)
for backup in backups:
if total_backups > 3:
if int(os.path.basename(backup)) < time.time() - 259200:
if tryInt(os.path.basename(backup)) < time.time() - 259200:
for src_file in src_files:
b_file = os.path.join(backup, os.path.basename(src_file))
if os.path.isfile(b_file):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment