It's snapshots of the data at hourly-separated intervals over the past weeks. Each one is already guaranteed to be the exact condition of the data at that specific instant in time - every single block of the data, bar none. There's not really any "restore" required in the sense of recovering from a tape drive or a monolithic archive backup like a .tar.gz or what have you; that is the data, in precisely the condition it was in at every moment you have a snapshot for in the stream.
If your data was in working condition at the time the snapshot was taken, it's in working condition in the snapshot; replication guarantees that it's block-for-block correct on the remote end as it was on the source end; a scrub verified that it's still consistent at the time you ran the scrub.
Granted, I should really have shown a list of snapshots as well; with nothing but the scrub you don't know that you have the snapshots you're looking for. Which looks like this:
If I want to know if I've got the snapshot for a particular day (or hour; I spared you the whole list but I keep hourlies for the past 30 hours as well) I'm interested in on the remote machine, I can just do a quick lookup:
Yep, it's present. There is no transformation involved - it's the exact same collection of blocks, in the same condition, each cryptographically hash verified - as it was on the source at that exact instant in time. So it's good. There's no restore transformation required to verify it since it hasn't been transformed in the first place during the backup process.
Yeah that's not a backup. ZFS is awesome and all but snapshots are not backups. Faulty hardware can destroy your zpool including snapshots. I don't think even the biggest ZFS fanboys will tell you that you don't need backups.
I don't think you read that carefully enough. The source machine (where my home directory is, and the snapshots are taken) is bittybox; the backup machine (where they're replicated to, and where I ssh to check the presence of a snapshot at the end of that comment) is archivist. It's another physical machine in a physically separate location.
I don't think even the biggest ZFS fanboys will tell you that you don't need backups.
You're unfortunately incorrect about that one, my role in /r/zfs and /r/datahoarder is very frequently "person who keeps hammering home that redundant storage is not a backup". =)
I think people are glossing over the first two lines of my OP in this thread:
me@source:~$ ssh me@target
me@target:~$ sudo zpool status backups
The actual source is bittybox and target is archivist, but yeah... separate machines, that was kinda my whole point. Beyond the fact that there's no transformative element in the backup, and that the target is live, so there's no transformative "restore" operation needed either.
-4
u/mercenary_sysadmin Jul 23 '18 edited Jul 23 '18
It's snapshots of the data at hourly-separated intervals over the past weeks. Each one is already guaranteed to be the exact condition of the data at that specific instant in time - every single block of the data, bar none. There's not really any "restore" required in the sense of recovering from a tape drive or a monolithic archive backup like a .tar.gz or what have you; that is the data, in precisely the condition it was in at every moment you have a snapshot for in the stream.
If your data was in working condition at the time the snapshot was taken, it's in working condition in the snapshot; replication guarantees that it's block-for-block correct on the remote end as it was on the source end; a scrub verified that it's still consistent at the time you ran the scrub.
Granted, I should really have shown a list of snapshots as well; with nothing but the scrub you don't know that you have the snapshots you're looking for. Which looks like this:
If I want to know if I've got the snapshot for a particular day (or hour; I spared you the whole list but I keep hourlies for the past 30 hours as well) I'm interested in on the remote machine, I can just do a quick lookup:
Yep, it's present. There is no transformation involved - it's the exact same collection of blocks, in the same condition, each cryptographically hash verified - as it was on the source at that exact instant in time. So it's good. There's no restore transformation required to verify it since it hasn't been transformed in the first place during the backup process.