pkgcore.sync.rsync module¶
- class pkgcore.sync.rsync.rsync_syncer(basedir, uri, conn_timeout=15, usersync=False, compress=False, excludes=(), includes=(), retries=5, proxy=None, opts=(), extra_opts=())[source]¶
Bases:
ExternalSyncer
- binary = 'rsync'¶
- default_conn_timeout = 15¶
- default_excludes = ['/distfiles', '/local', '/packages']¶
- default_includes = []¶
- default_opts = ['--recursive', '--delete', '--delete-delay', '--perms', '--times', '--compress', '--force', '--links', '--safe-links', '--stats', '--human-readable', '--timeout=180', '--whole-file']¶
- default_retries = 5¶
- pkgcore_config_type = <pkgcore.config.hint.ConfigHint object>¶
- class pkgcore.sync.rsync.rsync_timestamp_syncer(*args, **kwargs)[source]¶
Bases:
rsync_syncer
- current_timestamp(path=None)[source]¶
- Parameters:
path – override the default path for the timestamp to read
- Returns:
string of the timestamp data
- forcable = True¶
- forward_sync_delay = 1500¶
- negative_sync_delay = 3600¶