From c994cf00a403c592bda710b26f0ec435e937bb0a Mon Sep 17 00:00:00 2001 From: Denis Podshivalov Date: Thu, 29 Oct 2020 12:22:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B8=D1=81=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=B2=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=20rsync?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.py b/backup.py index fc0d3b0..f480e38 100755 --- a/backup.py +++ b/backup.py @@ -85,7 +85,7 @@ new = datetime.now().strftime(dateFormat) write_log("SUCCESS", f"Sync started at {new}\n") sync = call( - 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", + f"rsync -avAXHP --delete --delete-excluded --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/var/lib/pacman/sync/*","/var/cache/apt/archives/*","/var/cache/*","/var/tmp/*","/boot/lost+found","/home/lost+found","/home/*/.thumbnails/*","/home/*/.cache/google-chrome/*","/home/*/.local/share/Trash/*","/home/*/.gvfs/*", "/home/share/*"} /* {path_to_backups}{old_backup}", shell=True, )