run_rsync_local
- run_rsync_local(source, destination, maximum_sync_time, cancel_event=None) bool[source]
Run rsync to sync to a local destination (e.g., external HDD).
- Parameters:
source (str) – Local path to sync.
destination (str) – Local destination path (e.g., /media/pi/mydisk/backup/).
maximum_sync_time (int) – Maximum sync time in seconds.
cancel_event (threading.Event | None) – Event to signal cancellation.
- Returns:
True if sync succeeded, False otherwise.
- Return type:
bool