It seems ZFS snapshots are very useful because of their generation speed and possibility to send them to a remote location.
I'm interested in using them for backup purposes.
Basically to periodically make ZFS snapshots of my NAS box and send the snapshot to another computer to store it.
However I'm a bit confused when it comes to deleted and moved files.
Say on day X I have a filesystem in a certain state. I take a snapshot and send it to another computer.
Then on day Y I decide to rename/move/delete some files/directories. I then take another snapshot and send it to the same other computer.
Now I do something unwanted, for instance delete an important folder. AFAIK I can browse the ZFS snapshot (and manually recover the affected folder) or restore the snapshot itself.
If I restore the snapshot from day Y, then everything should be exactly the same as day Y, meaning the old versions of the renamed/moved/deleted files (made between day X and Y) won't be there. Or the renamed files will be duplicated and the deleted files restored (even though I don't want to)?
If I restore the snapshot from day X < Y, then everything should be exactly the same as day X, right?
Maybe the example above isn't clear enough but my concern is about restoring recent backups that may restore files I deleted 2 years ago (and 700 snapshots ago if made daily) and which I don't want anymore.
Please ask if not clear enough.
I'm interested in using them for backup purposes.
Basically to periodically make ZFS snapshots of my NAS box and send the snapshot to another computer to store it.
However I'm a bit confused when it comes to deleted and moved files.
Say on day X I have a filesystem in a certain state. I take a snapshot and send it to another computer.
Then on day Y I decide to rename/move/delete some files/directories. I then take another snapshot and send it to the same other computer.
Now I do something unwanted, for instance delete an important folder. AFAIK I can browse the ZFS snapshot (and manually recover the affected folder) or restore the snapshot itself.
If I restore the snapshot from day Y, then everything should be exactly the same as day Y, meaning the old versions of the renamed/moved/deleted files (made between day X and Y) won't be there. Or the renamed files will be duplicated and the deleted files restored (even though I don't want to)?
If I restore the snapshot from day X < Y, then everything should be exactly the same as day X, right?
Maybe the example above isn't clear enough but my concern is about restoring recent backups that may restore files I deleted 2 years ago (and 700 snapshots ago if made daily) and which I don't want anymore.
Please ask if not clear enough.