From 2e0395f86eea59ae55c39f2c01d5efddf75791bb Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Wed, 19 Jul 2017 08:11:36 +0200 Subject: [PATCH] [FIX]Rsync backup plan isfile had bad handling --- backups/rsyncvolumes/plan.tpl.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backups/rsyncvolumes/plan.tpl.py b/backups/rsyncvolumes/plan.tpl.py index 02aed59..ed7adfb 100644 --- a/backups/rsyncvolumes/plan.tpl.py +++ b/backups/rsyncvolumes/plan.tpl.py @@ -30,8 +30,9 @@ def zipdir(path, ziph): # ziph is zipfile handle for root, dirs, files in walk(path): for file in files: - if isfile(file): - ziph.write(osjoin(root, file)) + pfile = osjoin(root, file) + if isfile(pfile): + ziph.write(pfile) f = ZipFile(zippath, 'w', ZIP_DEFLATED) zipdir('${SOURCE}', f)