Ignore certain rsync return codes

This commit is contained in:
dave 2016-03-21 22:58:22 -07:00
parent 9265bcb927
commit 14467ab346
2 changed files with 6 additions and 2 deletions

View File

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

View File

@ -104,7 +104,11 @@ def backup(profile, conf, force=False):
#print("Rsync backup call: {}".format(' '.join(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