This guide introduces how to back up meta service data and restore from a backup.
backup_storage_url
and backup_storage_directory
system parameters prior to the first backup attempt.
backup_storage_url
and backup_storage_directory
when there are snapshots. However, it’s not strictly forbidden. If you insist on doing so, please note the snapshots taken before the setting will all be invalidated and cannot be used in restoration anymore.risectl
:
risectl
is included in the pre-built RisingWave binary. Use the following command instead:
risectl
:
restore-meta
reads snapshot data from backup storage and writes them to meta store and hummock storage.
For example, given the cluster settings below:
risectl meta restore-meta
should be:
--backup-storage-url s3://backup_bucket
.--backup-storage-directory backup_data
.--hummock-storage-url s3://state_bucket
. Note that the hummock+
prefix is stripped.--hummock-storage-directory state_data
.restore-meta
reads snapshot data from backup storage and writes them to meta store and hummock storage.
For example, given the cluster settings below:
risectl meta restore-meta
should be:
--backup-storage-url s3://backup_bucket
.--backup-storage-directory backup_data
.--hummock-storage-url s3://state_bucket
. Note that the hummock+
prefix is stripped.--hummock-storage-directory state_data
.