- do not make path when dry-run
This commit is contained in:
1 parent
2f3da4f20f
commit
2db5d4d135
1 file changed
+1
@@ -70,6 +70,7 @@ if __name__ == '__main__':
|
||||
else:
|
||||
latest = ''
|
||||
|
||||
if run:
|
||||
os.makedirs(os.path.join(backup_path_full, args.source[1:]))
|
||||
rsync = 'rsync {} --delete "{}" {} "{}"'.format(args.rsync, os.path.join(args.source, ''), latest,
|
||||
os.path.join(backup_path_full, args.source[1:]))
|
||||
|
||||
Reference in new issue
Block a user