diff --git a/backup.py b/backup.py index ec90e34..a84d07f 100755 --- a/backup.py +++ b/backup.py @@ -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.