Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-20.1: backupccl: prevent automatically narrowing full backups #46966

Merged
merged 1 commit into from
Apr 6, 2020

Conversation

dt
Copy link
Member

@dt dt commented Apr 3, 2020

Backport 1/1 commits from #46864.

/cc @cockroachdb/release


The new backup UX that allows appending incrementals by re-specifying paths
makes it easy to accidentally 'narrow' a backup, by backing up a single table
or database to a location that contains a existing backup of a additional
tables, databases or a full-cluster. In such a case, it would then base that
original backup impossible to appended to covering its original scope, i.e.
to do an incremental full-cluster backup, since the single table/db incremental
layer would be the most recent layer from which new layers would be based, but
would not contain the rest of the cluster/dbs that were in the base.

Narrowing or backing up different things at different cadences to different
places falls under what we are considering 'advanced' usage and can continue
using the existing syntax, as it is flexible enough to support such cases.
However 'basic' usage -- just backup my cluster somewhere -- with the new
syntax should reject narrowing as it is an easy way to mess up your backup
routine.

Fixes #46737.

Release note (enterprise change): the new appended incremental backup syntax does not allow converting a full cluster backup to a specific table or database backup.

The new backup UX that allows appending incrementals by re-specifying paths
makes it easy to accidentally 'narrow' a backup, by backing up a single table
or database to a location that contains a existing backup of a additional
tables, databases or a full-cluster. In such a case, it would then base that
original backup impossible to appended to covering its original scope, i.e.
to do an incremental full-cluster backup, since the single table/db incremental
layer would be the most recent layer from which new layers would be based, but
would not contain the rest of the cluster/dbs that were in the base.

Narrowing or backing up different things at different cadences to different
places falls under what we are considering 'advanced' usage and can continue
using the existing syntax, as it is flexible enough to support such cases.
However 'basic' usage -- just backup my cluster somewhere -- with the new
syntax should reject narrowing as it is an easy way to mess up your backup
routine.

Release note (enterprise change): the new appended incremental backup syntax does not allow converting a full cluster backup to a specific table or database backup.
@dt dt requested a review from pbardea April 3, 2020 14:13
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@dt dt merged commit 9ca5536 into cockroachdb:release-20.1 Apr 6, 2020
@dt dt deleted the backport20.1-46864 branch April 14, 2020 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants