The S3 Backup Restore Tool is the standalone utility for performing DR from the S3 backup bucket, either to the original cluster or to an empty cluster that is meant to replace the original. See S3 Backup Feeds.
Once the data is backed up in S3, the restore tool allows both examining a backup and control how, what, and where it is restored:
...
Section | Settings |
---|---|
[s3] |
|
[s3] archival | Set these additional parameters if using an S3 bucket with an archival storage class (Glacier, Glacier Deep Archive):
|
[forwardProxy] | This section is for use with an optional forward proxy:
|
[log] | The same log settings as the Swarm cluster may be used; identify the logs by looking for those with the component "
|
[swarm] |
|
...
-R or --recursive
— Recursively restore domains, buckets, or the entire cluster with an empty object spec. See above for what is iterated over when -R is not used.-v or --versions
— Include previous versions of versioned objects. They are not included by default.-f <file> or --file <file>
— Use objectspecs from a file instead of the command line.-p <count>/<total> or --partition <count>/<total>
— Partition work for a large restore job (but every instance restores buckets and domains before objects).Example: To run 4 instances in parallel, configure each option to be one of the series:
-p 1/4, -p -2/4, -p -3/4, -p -4/4
-n or ---noop
— Perform the checking of a restore, but do not restore any objects.Does not change the cluster state. The option can be used before and after a restore, as both a pre-check and a verification.
<objectspecs>
— Any number; newlines separate objects. If none, the top level of the cluster’s backup contents is the scope.Using no object specification with the command options
-Rv
causes Swarm to restore all backed up objects in the entire cluster, including any historical versions of versioned objects.
What gets is restored: Restore copies an object from S3 to the cluster if the cluster object is missing or else older than the S3 object. Note: context objects restore before the content they contain: restore first restores any domains or buckets needed before restoring objects within them.
...