Push and pull files
Pushing and pulling files is done exclusively with the CLI. There is no UI equivalent.
swale push uploads files from your machine to a repository tag, and swale pull downloads a tag's files back, each transferring only data the other side does not already hold. A pull to your own machine moves data out of the platform and counts as egress, and tasks in a run push and pull with the same commands.
Prerequisites
Pushing needs a verified email and an Active billing status on the account; pulling needs an Active billing status. See Billing statuses if a push or pull fails with a billing-related error.
Both commands name the repository and tag as project/repo:tag, in the account the CLI is working in; see Repository target.
Push files
swale push project/repo:tag --path /local/path
project/repo:tag— the destination repository and tag. The tag defaults tolatestwhen you leave out:tag.--path— a local file or directory to upload
Examples:
# Push a directory with an explicit tag
swale push data-pipeline/raw-data:2024-01-15 --path /data/raw
# Push to the default latest tag
swale push data-pipeline/raw-data --path /data/raw
Pushing to a repository that does not exist yet creates it. Only data the account does not already store is uploaded, so pushing the same files again, or pushing after a small edit, transfers only what changed.
Pushing to a tag name that already exists replaces that tag's snapshot, and the previous file list is not kept. Because latest is the default when you omit :tag, the second example above replaces the previous latest snapshot. Tags explains replacement, and Cache files between runs builds caches on it.
Pull files
swale pull project/repo:tag --path /local/path
project/repo:tag— the source repository and tag--path— the local directory where files will be written; it is created, along with any missing parent directories, if it does not exist
Example:
swale pull data-pipeline/raw-data:2024-01-15 --path /tmp/pulled-data
A pull only downloads data that is not already on your machine. Pulling a tag that shares most of its content with one you pulled earlier fetches only the difference.
Pulling files to your own machine counts as egress on your account's bill. See Billed dimensions.
Resume an interrupted transfer
If a push or pull is interrupted, run the same command again. Data that was already transferred is not sent again, so the command continues from where the previous run stopped. How storage works explains why.