From 2aba33bc01cade248a5f994e55585940bf3a2bc6 Mon Sep 17 00:00:00 2001 From: Denis Podshivalov Date: Mon, 19 Oct 2020 10:22:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B8=D1=81=D0=BA=D0=BB=D1=8E=D1=87=D0=B0=D1=8E=D1=89?= =?UTF-8?q?=D1=83=D1=8E=20=D1=87=D0=B0=D1=81=D1=82=D1=8C=20=D1=81=D0=BA?= =?UTF-8?q?=D1=80=D0=B8=D0=BF=D1=82=D0=B0=20rsync?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backup.py b/backup.py index e99fb05..e3d5bf4 100644 --- a/backup.py +++ b/backup.py @@ -59,9 +59,7 @@ new = datetime.now().strftime(dateFormat) sync = call( - "rsync -aAXсv / --exclude={'/dev/*','/proc/*','/sys/*','/tmp/*','/run/*','/mnt/*','/media/*','/lost+found'} --delete " - + {path_to_backups} - + {old_backup}, + f"rsync -aAXcv / --exclude='/dev/*' --exclude='/proc/*' --exclude='/sys/*' --exclude='/tmp/*' --exclude='/run/*' --exclude='/mnt/*' --exclude='/media/*' --exclude='/lost+found'}} {path_to_backups}{old_backup} --delete", shell=True, )