backupccl: add verify_backup_table_data
option to RESTORE
#83671
Labels
A-disaster-recovery
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-disaster-recovery
Currently the only way for a user to validate a RESTORE cmd is by running the actual RESTORE, which can be quite expensive and time consuming.
One solution to the problem is
RESTORE ... with schema_only
( #83470 ) which only restores the schema stored in the backup. In other words, no table data is read or written from external storage, aside from the manifest.Some users may also want to validate that the actual table data is not corrupt, which would require reading data from external storage. To that end, Restore should have an additional
verify_backup_table_data
flag, specified withschema_only
, that will read table data from external storage, conduct checksums, but will not ingest the data to cockroach. By avoiding ingestion,RESTORE ... with schema_only, verify_backup_table_data
will be significantly faster than a regular restore.Jira issue: CRDB-17201
Epic CRDB-10342
The text was updated successfully, but these errors were encountered: