Restore data from cloud storage with absctl restore
For the complete documentation index see: llms.txt
All documentation pages available in markdown.
Use absctl restore to restore backups directly from the following cloud storage providers:
To restore from cloud storage, specify the relevant flags for your provider.
Amazon S3
To restore from Amazon S3, use the following flags:
--s3-bucket-name: The name of the S3 bucket.--s3-region: The AWS region when using the default AWS endpoint. You can also provide it via your AWS profile or environment.
Then choose one authentication method:
- AWS profile:
--s3-profile - Static credentials:
--s3-access-key-idand--s3-secret-access-key - Environment credentials: Set
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYenvironment variables
Example
absctl restore -d BACKUP_DIRECTORY --s3-bucket-name BUCKET_NAME --s3-region REGION_NAMERequired S3 permissions for absctl restore
absctl restore requires certain permissions to restore from Amazon S3.
In the following IAM JSON policy, include the elements listed and replace BACKUP_BUCKET with the name of the S3 bucket you are using for the restore.
{ "Statement": [ { "Action": [ "s3:ListBucket", "s3:GetBucketLocation" ], "Effect": "Allow", "Resource": [ "arn:aws:s3:::BACKUP_BUCKET" ] }, { "Action": [ "s3:GetObject", "s3:RestoreObject" ], "Effect": "Allow", "Resource": [ "arn:aws:s3:::BACKUP_BUCKET/*" ] } ], "Version": "2012-10-17"}Include s3:RestoreObject if you use --s3-tier to temporarily restore archived data and make it available.
Google Cloud Storage (GCS)
To restore from Google Cloud Storage, use the following flags:
--gcp-bucket-name: The name of the GCS bucket.--gcp-key-path: Path to the service account key file (JSON) for authenticated access.--gcp-endpoint-override: (Optional) Override the GCS endpoint.
Required GCS permissions for absctl restore
The service account requires the following IAM role or equivalent permissions:
- Role:
roles/storage.objectVieweron the bucket, or custom permissions:storage.objects.getstorage.objects.list
Example
absctl restore -d BACKUP_DIRECTORY --gcp-bucket-name BUCKET_NAME --gcp-key-path /path/to/key.jsonAzure Blob Storage
To restore from Azure Blob Storage, use the following required flags:
--azure-container-name: The name of the Azure container.--azure-endpoint: Azure Blob service endpoint URL (required).
Then choose one authentication method:
- Shared key:
--azure-account-nameand--azure-account-key - Azure AD:
--azure-tenant-id,--azure-client-id, and--azure-client-secret - SAS: include the SAS token in the
--azure-endpointURL
Required Azure permissions for absctl restore
The identity or SAS token requires the following permissions on the container:
-
Azure RBAC role:
Storage Blob Data Reader, or custom permissions:Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read
-
SAS token permissions: Read (
r), List (l)
Example
absctl restore -d BACKUP_DIRECTORY --azure-container-name CONTAINER_NAME --azure-endpoint https://ACCOUNT_NAME.blob.core.windows.net/ --azure-account-name ACCOUNT_NAME --azure-account-key ACCOUNT_KEYCloud storage options reference
The following options are available for restoring from cloud storage, grouped by provider. For required permissions, see the previous provider-specific sections.
Use --s3-tier and --azure-access-tier to temporarily restore archived data and make it available at a specific tier, and the --s3-restore-poll-duration and --azure-rehydrate-poll-duration options to control how often absctl restore checks availability when restoring from cold storage tiers.