Re: Back up datasets to non-ZFS volume
Posted: Wed Sep 05, 2018 6:44 pm
The other thing that you will probably need to do, is "be root"... sudo or otherwise. Thusly:
This is actually from a script, hence the "sudo sh -c", if just doing it from a terminal:
Will suffice.
I'll leave it up to the reader for homework on the various options of send and receive.
I believe you can also send a pool without a snapshot, but the source cannot be mounted. It is not something I've found useful enough to investigate further. I find snapshots better as you know exactly what you're reference points are.
Cheers!
- Code: Select all
sudo sh -c "zfs send -R -i ${snapshot_previous} ${snapshot_today} | zfs receive -Fduvs ${destination}"
This is actually from a script, hence the "sudo sh -c", if just doing it from a terminal:
- Code: Select all
sudo zfs send -R -i ${snapshot_previous} ${snapshot_today} | sudo zfs receive -Fduvs ${destination}
Will suffice.
I'll leave it up to the reader for homework on the various options of send and receive.
I believe you can also send a pool without a snapshot, but the source cannot be mounted. It is not something I've found useful enough to investigate further. I find snapshots better as you know exactly what you're reference points are.
Cheers!