Skip to content

Instantly share code, notes, and snippets.

@mpkocher
Last active February 9, 2016 19:56
Show Gist options
  • Save mpkocher/a72fd15db296ac73b739 to your computer and use it in GitHub Desktop.
Save mpkocher/a72fd15db296ac73b739 to your computer and use it in GitHub Desktop.
Transfer Scheme Models

Transfer Scheme Notes

  • The Scheme "id" must be ([A-z0-9-_]*)
  • scheme must be "srs" (SSH+rsync) or "rsync" (rsync server)
  • user non-empty string
  • host non-empty string
  • port int
  • auth string /path/to/file
  • path (see below)

"srs" Mode

  • "path" Absolute path on the remove server
  • "destPath" must be the same as "path"

"rsync" Mode

  • "path" is the name of the rsync module
  • "destPath" is the absolute path on the remote server

Legacy with collection-path.config (JSON file)

The "destPath" must be unique across all transfer models (this will be changed in 3.1) due to ICS use of CollectionPathURI to encode the transfer model. This will be replaced in 3.1 with the "id"

{
"transfer-scheme-alpha-id": {
"scheme": "srs",
"user": "a-user",
"host": "my-host",
"port": 22,
"auth": "/path/to/paxfer.config",
"path": "/absolute/path/to/alpha/root",
"destPath": "/absolute/path/to/alpha/root"
},
"transfer-scheme-beta-id": {
"scheme": "rsync",
"user": "a-user",
"host": "my-host",
"port": 873,
"auth": "/path/to/paxfer.config",
"path": "rsync_module_name",
"destPath": "/absolute/path/to/beta/root"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment