diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-03-09 19:37:13 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-03-09 19:37:13 +0800 |
commit | 56641bc0d6a13785b3c89f218c1ea3f20a8435ca (patch) | |
tree | 52437211fedecbf0c7113064705b2bca5e84ba51 /bin | |
parent | 59708831cd378fb26728a5590765efa7641db358 (diff) | |
download | atoolbox-56641bc0d6a13785b3c89f218c1ea3f20a8435ca.tar.bz2 |
bin/dar_backup.py: Fix min-digits and catalog finding
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dar_backup.py | 4 |
1 files 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: |