mirror of
https://github.com/Llloooggg/BackuPYer.git
synced 2026-03-06 02:26:23 +03:00
Исправил рекурсивное копирование в скрипте rsync
This commit is contained in:
@@ -59,7 +59,9 @@ new = datetime.now().strftime(dateFormat)
|
|||||||
|
|
||||||
|
|
||||||
sync = call(
|
sync = call(
|
||||||
f"rsync -aAXv / --exclude={{'/dev/*','/proc/*','/sys/*','/tmp/*','/run/*','/mnt/*','/media/*','/lost+found'}} {path_to_backups}{old_backup} --delete",
|
"rsync -aAXv / --exclude={'/dev/*','/proc/*','/sys/*','/tmp/*','/run/*','/mnt/*','/media/*','/lost+found'} --delete "
|
||||||
|
+ {path_to_backups}
|
||||||
|
+ {old_backup},
|
||||||
shell=True,
|
shell=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user