From 56641bc0d6a13785b3c89f218c1ea3f20a8435ca Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 9 Mar 2017 19:37:13 +0800 Subject: bin/dar_backup.py: Fix min-digits and catalog finding --- bin/dar_backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dar_backup.py b/bin/dar_backup.py index e6e3aa2..8a987a2 100755 --- a/bin/dar_backup.py +++ b/bin/dar_backup.py @@ -73,7 +73,7 @@ class DarSettings: # Default settings args_common = [ - "--min-digits", "3", + "--min-digits", "3,3,3", "--noconf", # do not try to read /etc/darrc or ~/.darrc ] args_default = [ @@ -171,7 +171,7 @@ class DarSettings: catalog_glob = os.path.join(self.path, self.catalog_path, basename) try: catalog = sorted(glob(catalog_glob))[-1] - name = os.path.splitext(catalog)[0] + name = os.path.splitext(os.path.splitext(catalog)[0])[0] logger.info("Found last catalog: {0}".format(name)) return name except IndexError: -- cgit v1.2.2