Backup Strategy against loss of complete Pool

Well, they are a possible protection against ransomware. In that sense I consider them a backup. But I agree that they do not protect against various other scenarios.

Run, @ChrisRJ. Run. You have spoken such sacrilege.

Iā€™ll try to distract everyone as long as I canā€¦ but you need to hurry up and run as far away as possible!

2 Likes

Yes. As long as snapshots as present all blocks required to serve the multiple versions of the data over time are retained in the pool.
After the second snapshot, blocks 1-3 and 5-10 have two :lock::lock:, blocks 4 and 11 have one :lock:
Used: 11
snaphsot-1: referred 10
snapshot-2: referred 10

Thanks. I think I understand. So if I screw up and delete myfile.dat it can be restored by restoring the snapshot which will contain records of all the blocks and changes. That is the reason to keep your snapshots fresh. Correct?

No idea what you mean by thatā€¦

ā€œRestoring a snapshotā€, i.e. reverting the whole dataset to the recorded state of a snapshot, is a rather drastic measure as it discards all changes since then.
Rather, you browse the (content of a) snapshot, mounted as a read-only file system, and copy the file back from there into the active datasetā€”as you do with TimeMachine backups.

ā€¦ congratulations, the ā€œHounds of Hadesā€ TrueNAS forum feature has been unlocked. Good luck outrunning them.

Next up, the Harpies are going to come streaming from the sky, screaming for Vengeance.

2 Likes

Gotchaā€¦I think I finally understand. One more question (maybe) ;-). If you are running snapshots on a regular basic and since snapshots lock and copy blocks how do they keep from using the disk up on a busy dataset that is changing all the time? BTW thanks again for doing this. This has bothered me for a long time and Inquiring minds want to know :wink:

Thatā€™s why snapshots have a limited lifetime. That ability to scroll back in time is limited to whatever you set.

It is common to set multiple snapshot lifetimes - ie hourly snapshots that are kept for 2 weeks, weekly snapshots that are kept for 3 months, for example.

If your data changes a lot, then the space needs for the data will shoot up if snapshots are kept around for a long time. So itā€™s one thing to plan for.

1 Like

Ok I think the light is beginning to come on. As snapshots age out it basically unlocks those blocks for reuse and you just lose the capability to go back in time for the data. Snapshots are not a backup so to speak it is a recovery process where you can go back in time to a picture of your data as it was then. The data is only as good as the last snapshot. Right?

1 Like

They do more than represent, they refer.

The data referred to by a snapshot, is the actual data that was present when the snapshot was takenā€¦ and that data will not be removed from disk until all snapshots that refer to that dataā€¦ and the data are deleted.

Now is probably a good time to link my video on Tiered Snapshots, and using them for data recovery :slight_smile:

2 Likes

Gotcha thanks

Thanks Stuxā€¦ I love your videosā€¦

1 Like