I test restore my backup for the first time in 2 year. 2 of 5 things was broken
After greybeard_graham's tweet ("a backup you have never restored is a rumour") I feel personally attacked, so last weekend I finally do a real restore test. Not "I see the files in B2", a real restore to a new VM, start the apps, use them. Result: 3 OK, 2 broken. Nothing was lost because the originals are fine, but if the NAS died last month, I would lose all my scanned documents. Here is the story. The setup…
- the bare "media/" exclude is a classic. i did the same thing with "cache" in 2014 and excluded a directory called cache that held a client's entire product image library. found out when they asked for a restore. aye. three more for the list: 1. 3-2-1. three copies, two kinds of media, one offsite. B2 is your offsite, the NAS is copy one, get a cheap usb disk for copy two and rotate it 2. one copy should be something ransomware cannot delete. B2 has object lock, use it, or at least an app key that can't delete 3. write the restore steps down. on paper. the person restoring might be your wife, and she won't have your bash history
- pg_dump. Always. A filesystem copy of a running database is not a backup.