Syncer.sync_up_if_needed(local_dir: str, remote_dir: str, exclude: Optional[List] = None) bool[source]#

Syncs up if time since last sync up is greater than sync_period.

  • local_dir – Local directory to sync from.

  • remote_dir – Remote directory to sync up to. This is an URI (protocol://remote/path).

  • exclude – Pattern of files to exclude, e.g. ["*/checkpoint_*] to exclude trial checkpoints.