Was this page helpful?
Caution
You're viewing documentation for an unstable version of Scylla Manager. Switch to the latest stable version.
Download filesCopy
Scylla Manager Agent comes with a download-files subcommand that given a backup location can be used to:
List clusters, datacenters and nodes.
Search for snapshot tags.
Download files without a need for third-party tools.
Please note, that the command may require higher demand on the number of file descriptors. We recommend prefixing this command with ulimit to extend the default fd soft limit.
ulimit -n 10000
Download-filesCopy
Syntax:
scylla-manager-agent download-files --location <backup location> [OPTION]...
parametersCopy
--clear-tables
Copy
Remove sstables before downloading
-c, --config-file path
Copy
Configuration file path, you can specify the flag multiple times to overwrite configuration options.
Default: /etc/scylla-manager-agent/scylla-manager-agent.yaml
-d, --data-dir path
Copy
Path to Scylla data directory (typically /var/lib/scylla/data) or other directory to use for downloading the files.
Default: current directory
--debug
Copy
Enable debug logs.
Default: current directory
--dry-run
Copy
Validate and print a plan without downloading (or clearing) any files.
--dump-manifest
Copy
Print Scylla Manager backup manifest as JSON.
--dump-tokens
Copy
Print list of tokens from the manifest.
-K, --keyspace list
Copy
A comma-separated list of keyspace/tables glob patterns, e.g. ‘keyspace,!keyspace.table_prefix_*’.
--list-nodes
Copy
Print list of nodes including cluster name and node IP, this command would help you find nodes you can restore data from.
--list-snapshots
Copy
Print list of snapshots of the specified node, this also takes into account keyspace filter and returns only snapshots containing any of requested keyspaces or tables, newest snapshots are printed first.
-L, --location string
Copy
Backup location in the format <provider>:<name> e.g. s3:my-bucket, the supported providers are: s3, gcs, azure.
--mode upload, sstableloader
Copy
Mode changes resulting directory structure, supported values are: upload, sstableloader, set ‘upload’ to use table upload directories, set ‘sstableloader’ for <keyspace>/<table> directories layout.
-n, --node ID
Copy
‘Host ID’ value from nodetool status command output of a node you want to restore.
Default: local node
-p, --parallel int
Copy
How many files to download in parallel.
Default: 8
--rate-limit int
Copy
Rate limit in megabytes (MiB) per second.
Default: no limit
-T, --snapshot-tag tag
Copy
Scylla Manager snapshot tag as read from backup listing e.g. sm_20060102150405UTC, use –list-snapshots to get a list of snapshots of the node.