Ignore certain rsync return codes
This commit is contained in:
parent
9265bcb927
commit
14467ab346
|
@ -1 +1 @@
|
|||
__version__ = "0.0.1"
|
||||
__version__ = "0.0.2"
|
||||
|
|
|
@ -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…
Reference in New Issue