- do not make path when dry-run

This commit is contained in:
Wim Pomp
2021-02-12 10:21:08 +01:00
parent 2f3da4f20f
commit 2db5d4d135

View File

@@ -70,7 +70,8 @@ if __name__ == '__main__':
else:
latest = ''
os.makedirs(os.path.join(backup_path_full, args.source[1:]))
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:]))