skip over nonexisting paths

This commit is contained in:
brent s 2019-06-05 22:10:08 -04:00
parent d7f6a4f013
commit 55b1fc5e71

View File

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