Source

Transcript:

10 things that block your Happiness

  1. Self-hatred
  2. Not being able to let go of the past.
  3. Not being able to forgive yourself.
  4. Not being able to value who you are.
  5. Assuming RAID is backup.
  6. Not making backups.
  7. Not verifying backups and finding out restore time.
  8. Needing other people to validate you.
  9. Letting other people define who you are.
  10. Trying to be perfect and to please everyone.
47 points

RAID 0 is the best way to ensure data redundancy. It’s what we use at every Fortune500 company and there’s not an issue.

permalink
report
reply
42 points

But it’s still not a backup strategy. You should always have a second partition on the server that you sync your data over to. For performance reasons this partition should be on the same RAID 0 array.

permalink
report
parent
reply
33 points

Backing up to a different partition on the same RAID array sounds like a good way to lose all your data.

The backup should be physically separate from the original.

permalink
report
parent
reply
15 points

Yes, and it should use another type of media, like tape, glass, stone tablets or optical media

permalink
report
parent
reply
12 points

This guy RAIDs

permalink
report
parent
reply
6 points

Preferably something geographically separated from the server as well in case of some kind of physically destructive event like a fire.

permalink
report
parent
reply
8 points

Most people don’t know this but RAID6 is also a fire deterrent

permalink
report
parent
reply
11 points

I prefer RAID -1, which is like RAID 0 except that you routinely yank one of the drives so that only the fittest of the bits survive, greatly improving the quality of your data!

permalink
report
parent
reply
5 points

Evolution in practice!

permalink
report
parent
reply
14 points

I can validate this. I work as the IT ops guy for every Fortune 500 company and we only use RAID-0 for backups.

permalink
report
parent
reply
4 points

A singular raid0 for all of them to make sure it’s safe

permalink
report
parent
reply
5 points

what? 🤨

You made me doubt a second

permalink
report
parent
reply
14 points
*

Pro tip: Copying a Postgres database while live transactions are interacting with it frequently results in a corrupt backup.

Thankfully I test my Luanti backups.

Edit: I should clarify - My dangerous backup method was a naive file copy. I’m sure there’s a different correct way to do a live backup. I just haven’t checked into it yet, since stopping my Luanti server for a backup is no big deal.

permalink
report
reply
4 points

İirc they say dont do live backups as file copying but also docs say you could use filesystem snapshots

permalink
report
parent
reply
1 point

Yeah. I knew better, but it just didn’t occur to me until I was confirming my backups later.

permalink
report
parent
reply
4 points

Yikes! Thanks for the tip. I’m just starting to learn about Postgres. Think I’ll stick with MySQL or SQLite for now… :o

permalink
report
parent
reply
3 points

Choosing to not use something is not a good way to learn how to use it.

In this particular instance, the lesson is to either a) use the provided database tools (e.g. pg_dumpall) for live backup, or b) bring the database cluster down before you backup the raw data folder.

permalink
report
parent
reply
3 points

Seriously? Dammit

permalink
report
parent
reply
15 points

Don’t forget being forced into the office

permalink
report
reply
12 points

RAID with parity is technically a backup, just a mostly ineffective one. It’s a backup that allows you to recover from exactly one scenario, single (or double) device hardware failure.

But I definitely understand the mantra “RAID is not a backup”. It’s not what most people think of when they say “backup”.

permalink
report
reply
12 points

Validate your backups, do not let them validate you!

permalink
report
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 2K

    Monthly active users

  • 861

    Posts

  • 14K

    Comments