Browse Source

Ignore certain rsync return codes

master
dave 5 years ago
parent
commit
14467ab346
  1. 2
      datadb/__init__.py
  2. 6
      datadb/datadb.py

2
datadb/__init__.py

@ -1 +1 @@
__version__ = "0.0.1"
__version__ = "0.0.2"

6
datadb/datadb.py

@ -104,7 +104,11 @@ def backup(profile, conf, force=False):
#print("Rsync backup call: {}".format(' '.join(args)))
subprocess.check_call(args)
try:
subprocess.check_call(args)
except subprocess.CalledProcessError as cpe:
if cpe.returncode not in [0,24]: # ignore partial transfer due to vanishing files on our end
raise
elif dest.scheme == 'archive':
# CD to local source dir

Loading…
Cancel
Save