same thing for excludes

This commit is contained in:
brent s 2019-06-05 23:18:17 -04:00
parent 55b1fc5e71
commit 46113be10f

View File

@ -297,6 +297,7 @@ class Backup(object):
_cmd.extend(['--compression', repo['compression']])
if 'exclude' in repo:
for e in repo['exclude']:
if os.path.exists(e):
_cmd.extend(['--exclude', e])
if self.repos[server]['remote'].lower()[0] in ('1', 't'):
repo_tgt = '{0}@{1}'.format(_user, server)