Добавил исключения в скрипт rsync

This commit is contained in:
2020-10-29 12:22:59 +03:00
committed by GitHub
parent 7a77f5da91
commit c994cf00a4

View File

@@ -85,7 +85,7 @@ new = datetime.now().strftime(dateFormat)
write_log("SUCCESS", f"Sync started at {new}\n") write_log("SUCCESS", f"Sync started at {new}\n")
sync = call( 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, shell=True,
) )