forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backupccl: SHOW BACKUP FILES IN (on collection) returns the full SST …
…path Previously, SHOW BACKUP FILES on a backup collection would return the SST file path relative to the manifest directory. Given that the incremental backup and full backup manifests are stored in different directories, the file paths that SHOW BACKUP FILES should reflect that. This patch changes the path `SHOW BACKUP FILES IN` returns to the backup path relative to the collection root. As an example: Previously, the command `SHOW BACKUP FILES LATEST IN s3://mybackups`, would return: data/001.SST // from a full backup data/002.SST // from an incremental backup Now, the command will return (assuming the full and inc live in same subdir): /2020/12/25-060000.00/data/001.SST /2020/12/25-060000.00/20201225/070000.00/data/002.SST Note: when a user passes the incremental_location parameter, the output result will be slightly misleading because the incrementals will have a different collection root. To aid in this confusion, I added a backup_type column equal to 'incremental' or 'full'. I plan to test this change in the PR for cockroachdb#77694 Release note: None
- Loading branch information
Showing
1 changed file
with
82 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters