-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more robust restore options. Fixed usage of -I option on backups …
…and an edge case that would corrupt final manifest's volume ordering. Also added verification that provided snapshots exist before processing backups and restores
- Loading branch information
Showing
9 changed files
with
294 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ The compiled binary should be in your $GOPATH/bin directory. | |
|
||
## Usage | ||
|
||
### "Smart" Options: | ||
### "Smart" Backup Options: | ||
|
||
Use the `--full` option to auto select the most recent snapshot on the target volume to do a full backup of: | ||
|
||
|
@@ -60,6 +60,16 @@ Use the `--fullIfOlderThan` option to auto select the most recent snapshot on th | |
|
||
$ ./zfsbackup send --encryptTo [email protected] --signFrom [email protected] --publicKeyRingPath pubring.gpg.asc --secretKeyRingPath secring.gpg.asc --fullIfOlderThan 720h Tank/Dataset gs://backup-bucket-target,s3://another-backup-target | ||
|
||
### "Smart" Restore Options: | ||
Add the `--auto`` option to automatically restore to the snapshot if one is given, or detect the latest snapshot for the filesystem/volume given and restore to that. It will figure out which snapshots are missing from the local_volume and select them all to restore to get to the desired snapshot. Note: snapshot comparisons work using the name of the snapshot, if you restored a snapshot to a different name, this application won't think it is available and it will break the restore process. | ||
|
||
Auto-detect latest snapshot: | ||
$ ./zfsbackup receive --encryptTo [email protected] --signFrom [email protected] --publicKeyRingPath pubring.gpg.asc --secretKeyRingPath secring.gpg.asc --auto -d Tank/Dataset gs://backup-bucket-target Tank | ||
|
||
Auto restore to snapshot provided: | ||
$ ./zfsbackup receive --encryptTo [email protected] --signFrom [email protected] --publicKeyRingPath pubring.gpg.asc --secretKeyRingPath secring.gpg.asc --auto -d Tank/Dataset@snapshot-20170201 gs://backup-bucket-target Tank | ||
|
||
|
||
### Manual Options: | ||
|
||
Full backup example: | ||
|
@@ -168,11 +178,10 @@ Global Flags: | |
## TODOs: | ||
* Make PGP cipher configurable. | ||
* Finish the verify command | ||
* Build out more robust restore options (e.g. cascading, parent verification, etc.) | ||
* Refactor | ||
* Test Coverage | ||
* Add more backends (e.g. Azure, BackBlaze, etc.) | ||
* Add delete feature | ||
* Appease linters | ||
* Validate requested snapshots exist | ||
* Track intermediary snaps as part of backup jobs | ||
* Parity archives? |
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.