skip over nonexisting paths

This commit is contained in:
brent s 2019-06-05 22:10:08 -04:00
parent d7f6a4f013
commit 55b1fc5e71
1 changed files with 2 additions and 1 deletions

View File

@ -306,7 +306,8 @@ class Backup(object):
repo['name'],
self.args['archive']))
for p in repo['path']:
_cmd.append(p)
if os.path.exists(p):
_cmd.append(p)
self.logger.debug('VARS: {0}'.format(vars()))
# We don't use self.cmdExec() here because we want to explicitly
# pass the env and format the log line differently.