mirror of
https://github.com/Llloooggg/BackuPYer.git
synced 2026-03-06 02:26:23 +03:00
Исправил экранирование кавычек в скрипте rsync
This commit is contained in:
@@ -85,7 +85,7 @@ new = datetime.now().strftime(dateFormat)
|
||||
write_log("SUCCESS", f"Sync started at {new}\n")
|
||||
|
||||
sync = call(
|
||||
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}",
|
||||
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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user