Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Take a backup or restore a backup using commands
You can utilizeBACKUP and RESTORE commands to export backups to their storage buckets,
in addition to backing up or restoring via user interface.
Commands for all three CSPs are given in this guide.
Requirements
You will need the following details to export/restore backups to your own CSP storage bucket:- AWS
- GCP
- Azure
- AWS S3 endpoint, in the format:
s3://<bucket_name>.s3.amazonaws.com/<optional_directory>For example:s3://testchbackups.s3.amazonaws.com/Where:testchbackupsis the name of the S3 bucket to export backups to.backupsis an optional subdirectory.
- AWS access key and secret. AWS role based authentication is also supported and can be used in place of AWS access key and secret as described in the section above.
Backup / Restore specific DB
Here we show the backup and restore of a single database. See the backup command summary for full backup and restore commands.AWS S3
- BACKUP
- RESTORE
uuid is a unique identifier, used to differentiate a set of backups.BACKUP_ALREADY_EXISTS error.
For example, if you’re taking daily backups, you will need to use a new uuid each day.Google Cloud Storage (GCS)
- BACKUP
- RESTORE
uuid is a unique identifier, used to identify the backup.BACKUP_ALREADY_EXISTS error.
For example, if you’re taking daily backups, you will need to use a new uuid each day.Azure Blob Storage
- BACKUP
- RESTORE
uuid is a unique identifier, used to identify the backup.BACKUP_ALREADY_EXISTS error.
For example, if you’re taking daily backups, you will need to use a new uuid each day.Backup / Restore entire service
For backing up the entire service, use the commands below. This backup will contain all user data and system data for created entities, settings profiles, role policies, quotas, and functions. We list these here for AWS S3. You can utilize these commands with the syntax described above to take backups for GCS and Azure Blob storage.- BACKUP
- RESTORE
uuid is a unique identifier, used to identify the backup.FAQ
What happens to the backups in my cloud object storage? Are they cleaned up by ClickHouse at some point?
What happens to the backups in my cloud object storage? Are they cleaned up by ClickHouse at some point?
What happens to the restore process if I move some of the existing backups to another location?
What happens to the restore process if I move some of the existing backups to another location?
What if I change my credentials required to access the object storage?
What if I change my credentials required to access the object storage?
What if I change the location to export my external backups to?
What if I change the location to export my external backups to?
How can I disable external backups on a service that I enabled them for?
How can I disable external backups on a service that I enabled them for?