A couple of questions. I'm still in the testing phase of things, but want to solidify my understanding. I want to perform incremental backups to an off-site drive.
There are three datasets:
Sunday:
Monday:
Tuesday:
And so on until next Sunday when I do a full backup again.
If I want to retrieve a file that was created in tank/kids on Tuesday, but deleted on Wednesday I would do something like:
Then I can go to tank/restore and grab the file.
Sorry, if this had been long but I wanted to be thorough.
My questions:
Bill
There are three datasets:
zfs create tank/user/nortonzfs create tank/user/wifezfs create tank/user/kids
Sunday:
zfs snapshot -R tank/user@fullSunday zfs send tank/user@fullSunday > /offsite/fullSundayMonday:
zfs snapshot -R tank/user@incremMonday zfs send -i tank/user@fullSunday tank/user@incremMonday > /offsite/incremMondayTuesday:
zfs snapshot -R tank/user@incremTuesday zfs send -i tank/user@fullSunday tank/user@incremMonday > /offsite/incremTuesdayAnd so on until next Sunday when I do a full backup again.
If I want to retrieve a file that was created in tank/kids on Tuesday, but deleted on Wednesday I would do something like:
zfs create tank/restore zfs recv -F tank/restore < /offsite/fullSunday zfs recv tank/restore < /offsite/fullMonday zfs recv -F tank/restore < /offsite/fullMondayThen I can go to tank/restore and grab the file.
Sorry, if this had been long but I wanted to be thorough.
My questions:
- Is there a better way to get to the incremental on Tuesday? Currently, I am having to do three recv's. Worse if it was on Friday.
- Is there a way to just restore a file from a dataset like tank/wife, rather than restoring the entire tank pool? I know I could do the send/recv on just a dataset (instead of -R tank) but if I have 50 datasets, I don't want that many files.
- Is there a better way to do this overall?
Bill