-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(restore): introduce incremental restore (#7942)
This commit introduces incremental restore. It allows incremental backups to be restored on top of a set of already restored backups. In between two incremental restores, the cluster is in draining mode.
- Loading branch information
1 parent
b1f5ea1
commit ad60db6
Showing
47 changed files
with
698 additions
and
387 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
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
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
systest/online-restore/backup/backups2011/dgraph.20210706.130427.532/manifest.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"full","since":55,"groups":{"1":["dgraph.graphql.schema_created_at","dgraph.graphql.schema","dgraph.drop.op","dgraph.cors","dgraph.graphql.xid","dgraph.graphql.p_sha256hash","dgraph.graphql.p_query","dgraph.type","dgraph.graphql.schema_history"],"2":["name"]},"backup_id":"wizardly_blackburn2","backup_num":1,"encrypted":false,"drop_operations":null} |
Binary file added
BIN
+530 Bytes
systest/online-restore/backup/backups2011/dgraph.20210706.130427.532/r55-g1.backup
Binary file not shown.
Binary file added
BIN
+289 Bytes
systest/online-restore/backup/backups2011/dgraph.20210706.130427.532/r55-g2.backup
Binary file not shown.
1 change: 1 addition & 0 deletions
1
systest/online-restore/backup/backups2011/dgraph.20210706.130444.413/manifest.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"incremental","since":58,"groups":{"1":["dgraph.graphql.p_sha256hash","dgraph.graphql.p_query","dgraph.graphql.schema_created_at","dgraph.cors","dgraph.graphql.schema_history","dgraph.type","dgraph.graphql.schema","dgraph.drop.op","dgraph.graphql.xid"],"2":["name","age"]},"backup_id":"wizardly_blackburn2","backup_num":2,"encrypted":false,"drop_operations":null} |
Binary file added
BIN
+380 Bytes
systest/online-restore/backup/backups2011/dgraph.20210706.130444.413/r58-g1.backup
Binary file not shown.
Binary file added
BIN
+315 Bytes
systest/online-restore/backup/backups2011/dgraph.20210706.130444.413/r58-g2.backup
Binary file not shown.
1 change: 1 addition & 0 deletions
1
systest/online-restore/backup/backups2011/dgraph.20210706.130453.552/manifest.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"incremental","since":68,"groups":{"1":["dgraph.graphql.schema","dgraph.type","dgraph.graphql.p_query","dgraph.graphql.schema_created_at","dgraph.graphql.xid","dgraph.graphql.schema_history","dgraph.drop.op","dgraph.graphql.p_sha256hash","dgraph.cors"],"2":["name","age"]},"backup_id":"wizardly_blackburn2","backup_num":3,"encrypted":false,"drop_operations":[{"drop_op":2,"drop_value":"name"}]} |
Binary file added
BIN
+437 Bytes
systest/online-restore/backup/backups2011/dgraph.20210706.130453.552/r68-g1.backup
Binary file not shown.
Binary file added
BIN
+256 Bytes
systest/online-restore/backup/backups2011/dgraph.20210706.130453.552/r68-g2.backup
Binary file not shown.
1 change: 1 addition & 0 deletions
1
systest/online-restore/backup/backups2011/dgraph.20210706.130519.083/manifest.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"incremental","since":72,"groups":{"1":["dgraph.type","dgraph.graphql.schema_created_at","dgraph.graphql.schema_history","dgraph.graphql.xid","dgraph.graphql.p_query","dgraph.graphql.schema","dgraph.drop.op","dgraph.cors","dgraph.graphql.p_sha256hash"],"2":["age","name"]},"backup_id":"wizardly_blackburn2","backup_num":4,"encrypted":false,"drop_operations":null} |
Binary file added
BIN
+377 Bytes
systest/online-restore/backup/backups2011/dgraph.20210706.130519.083/r72-g1.backup
Binary file not shown.
Binary file added
BIN
+303 Bytes
systest/online-restore/backup/backups2011/dgraph.20210706.130519.083/r72-g2.backup
Binary file not shown.
1 change: 1 addition & 0 deletions
1
systest/online-restore/backup/backups2011/dgraph.20210706.130544.666/manifest.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"incremental","since":86,"groups":{"1":["dgraph.graphql.xid","dgraph.graphql.schema","dgraph.drop.op","dgraph.type","dgraph.cors","dgraph.graphql.schema_created_at","dgraph.graphql.schema_history","dgraph.graphql.p_query","dgraph.graphql.p_sha256hash"],"2":["age","name"]},"backup_id":"wizardly_blackburn2","backup_num":5,"encrypted":false,"drop_operations":[{"drop_op":1}]} |
Binary file added
BIN
+688 Bytes
systest/online-restore/backup/backups2011/dgraph.20210706.130544.666/r86-g1.backup
Binary file not shown.
Binary file added
BIN
+264 Bytes
systest/online-restore/backup/backups2011/dgraph.20210706.130544.666/r86-g2.backup
Binary file not shown.
1 change: 1 addition & 0 deletions
1
systest/online-restore/backup/backups2011/dgraph.20210706.130634.385/manifest.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"incremental","since":104,"groups":{"1":["dgraph.graphql.p_sha256hash","dgraph.graphql.schema","dgraph.graphql.p_query","dgraph.cors","dgraph.graphql.schema_history","dgraph.graphql.schema_created_at","dgraph.type","dgraph.graphql.xid","dgraph.drop.op"],"2":["name","age"]},"backup_id":"wizardly_blackburn2","backup_num":6,"encrypted":false,"drop_operations":[{}]} |
Binary file added
BIN
+678 Bytes
systest/online-restore/backup/backups2011/dgraph.20210706.130634.385/r104-g1.backup
Binary file not shown.
Binary file added
BIN
+238 Bytes
systest/online-restore/backup/backups2011/dgraph.20210706.130634.385/r104-g2.backup
Binary file not shown.
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
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
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
Oops, something went wrong.