runners : pass config.backup to sync_files

After adding the backup infrastructure to config and synchroniser the
only thing left to do is pass the BackupConfig to sync_files.
This commit is contained in:
2026-01-08 14:13:14 +01:00
parent aaa4a8f12c
commit bb05990464

View File

@@ -11,7 +11,7 @@ def unisync_sync(synchroniser:Synchroniser, paths_manager:PathsManager, config:
return 1 return 1
print("Connected to the remote.") print("Connected to the remote.")
synchroniser.sync_files(paths_manager.get_paths_to_sync()) synchroniser.sync_files(paths_manager.get_paths_to_sync(), backup=config.backup)
synchroniser.sync_links(paths_manager.get_paths_to_sync()) synchroniser.sync_links(paths_manager.get_paths_to_sync())
# TODO check the config options and do or don't do the following # TODO check the config options and do or don't do the following