feat: Add Firestore backup/schedule and restore support#6778
Merged
Conversation
54 tasks
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6778 +/- ##
==========================================
- Coverage 54.28% 54.22% -0.06%
==========================================
Files 350 352 +2
Lines 24362 24485 +123
Branches 5042 5063 +21
==========================================
+ Hits 13225 13278 +53
- Misses 9930 9996 +66
- Partials 1207 1211 +4 ☔ View full report in Codecov by Sentry. |
joehan
approved these changes
Feb 20, 2024
Member
joehan
left a comment
There was a problem hiding this comment.
Some small style things and I'd love some more unit tests, but this LGTM overall.
joehan
reviewed
Feb 20, 2024
513f0cc to
109e513
Compare
109e513 to
33d5a60
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Creates new commands for Firestore disaster recovery support:
firestore:backups:schedules:listfirestore:backups:schedules:createfirestore:backups:schedules:updatefirestore:backups:schedules:deletefirestore:backups:getfirestore:backups:listfirestore:backups:deletefirestore:databases:restoreScenarios Tested
firestore:backups:schedules:listfirestore:backups:schedules:createfirestore:backups:schedules:updatefirestore:backups:schedules:deletefirestore:backups:getfirestore:backups:listfirestore:backups:deletefirestore:databases:restoreSample Commands
firebase firestore:backups:get projects/myproj/locations/nam5/backups/abcdefgfirebase firestore:backups:list –location=nam5 –project=myprojfirebase firestore:backups:delete projects/myproj/locations/nam5/backup/abcdefgfirebase firestore:backups:schedules:list --database '(default)'firebase firestore:backups:schedules:create --database '(default)' --recurrence DAILY --retention 3dfirebase firestore:backups:schedules:create --database '(default)' --recurrence WEEKLY --day-of-week TUESDAY --retention 7dfirebase firestore:backups:schedules:update projects/myproj/databases/(default)/backupSchedules/hijklmnop --retention 4dfirebase firestore:backups:schedules:delete projects/myproj/databases/(default)/backupSchedules/hijklmnopfirebase firestore:databases:restore --database restore-target --backup projects/myproject/locations/nam5/backups/abcdefg