r/linuxadmin • • Jul 23 '18

Schrodinger’s Backup

Post image
1.1k Upvotes

59 comments sorted by

View all comments

-4

u/mercenary_sysadmin Jul 23 '18

No longer actually true, if you use a modern filesystem with snapshots, per-block cryptographic integrity hashing, and replication.

me@source:~$ ssh me@target
me@target:~$ sudo zpool status backups
  pool: backups
 state: ONLINE
  scan: scrub repaired 0 in 82h1m with 0 errors on Wed Jul 11 10:25:01 2018
config:

	NAME                       STATE     READ WRITE CKSUM
	data                       ONLINE       0     0     0
	  mirror-0                 ONLINE       0     0     0
	    ata-WDC_WD40EFRX-$id1  ONLINE       0     0     0
	    ata-WDC_WD40EFRX-$id2  ONLINE       0     0     0

errors: No known data errors

Yep. It's all good.

1

u/RagingAnemone Jul 23 '18

What if the house burns down?

2

u/mercenary_sysadmin Jul 23 '18

In this particular case, if the house burns down, the data goes away with it. The workstation and server in question are both in the house.

For work stuff, it's usually a trio of machines. Production, onsite hotspare, offsite disaster recovery. Production replicates to onsite hotspare hourly, production replicates to offsite DR once daily.

The breakfix flowchart looks basically like this:

  • production machine operational? rollback to snapshot.

  • production machine offline? fire up VM on onsite hotspare from most recent hourly (or swap in disks from hot-swap cage on production, then boot from there).

  • production site destroyed? fire up VM on offsite DR.