start_sync#
- start_sync(src_dir: str, dst_dir_uri: str, sync_interval: int = 600, fs: Optional[FileSystem] = None)[source]#
Repeatedly sync a local source directory to a destination on a schedule.
Calls sync_to_dir on a schedule.
- Parameters
src_dir (str) – path of the local source directory
dst_dir_uri (str) – URI of destination directory
sync_interval (int) – period in seconds for syncing
fs (Optional[FileSystem]) – if supplied, use fs instead of automatically chosen FileSystem