same thing for excludes
This commit is contained in:
parent
55b1fc5e71
commit
46113be10f
@ -297,7 +297,8 @@ class Backup(object):
|
|||||||
_cmd.extend(['--compression', repo['compression']])
|
_cmd.extend(['--compression', repo['compression']])
|
||||||
if 'exclude' in repo:
|
if 'exclude' in repo:
|
||||||
for e in repo['exclude']:
|
for e in repo['exclude']:
|
||||||
_cmd.extend(['--exclude', e])
|
if os.path.exists(e):
|
||||||
|
_cmd.extend(['--exclude', e])
|
||||||
if self.repos[server]['remote'].lower()[0] in ('1', 't'):
|
if self.repos[server]['remote'].lower()[0] in ('1', 't'):
|
||||||
repo_tgt = '{0}@{1}'.format(_user, server)
|
repo_tgt = '{0}@{1}'.format(_user, server)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user