this post was submitted on 18 Dec 2024
575 points (99.3% liked)

Programmer Humor

19813 readers
142 users here now

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

founded 2 years ago
MODERATORS
 

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.
top 36 comments
sorted by: hot top controversial new old
[–] [email protected] 46 points 4 days ago (4 children)

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.

[–] [email protected] 42 points 4 days ago (3 children)

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.

[–] [email protected] 33 points 4 days ago (1 children)

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.

[–] [email protected] 15 points 3 days ago (2 children)

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

[–] [email protected] 17 points 3 days ago* (last edited 3 days ago) (2 children)

We have a bard travel accross the lands and carry out our data by singing epics about it.

That's a valid backup because it's a different media, correct?

[–] [email protected] 1 points 2 days ago

As long as you are fine with corruption.

[–] [email protected] 7 points 3 days ago

It shall live on through the generations

[–] [email protected] 4 points 3 days ago

NEVER test your backups. It wears out the tapes faster.

[–] [email protected] 12 points 4 days ago (1 children)
[–] [email protected] 9 points 4 days ago (3 children)
[–] [email protected] 5 points 3 days ago

RAID: Shadow Legends™ is an immersive online experience with everything you'd expect from a brand new RPG title. It's got an amazing storyline, awesome 3D graphics, giant boss fights, PVP battles, and hundreds of never before seen champions to collect and customize. I never expected to get this level of performance out of a mobile game. Look how crazy the level of detail is on these champions! RAID: Shadow Legends™ is getting big real fast, so you should definitely get in early. Starting now will give you a huge head start. There's also an upcoming Special Launch Tournament with crazy prizes! And not to mention, this game is absolutely free! So go ahead and check out the video description to find out more about RAID: Shadow Legends™. There, you will find a link to the store page and a special code to unlock all sorts of goodies. Using the special code, you can get 50,000 Silver immediately, and a FREE Epic Level Champion as part of the new players program, courtesy of course of the RAID: Shadow Legends™ devs.

[–] [email protected] 2 points 4 days ago

Nah, WoW. Off the company RAID.

[–] [email protected] 6 points 4 days ago (1 children)

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

[–] [email protected] 8 points 3 days ago (1 children)

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

[–] [email protected] 6 points 3 days ago

It also is excellent at keeping out ants.

You rarely see ants in datacenters and its because of all the RAID.

[–] [email protected] 11 points 3 days ago (1 children)

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!

[–] [email protected] 5 points 3 days ago

Evolution in practice!

[–] [email protected] 14 points 4 days ago (1 children)

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

[–] [email protected] 4 points 3 days ago

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

[–] [email protected] 5 points 4 days ago

what? 🤨

You made me doubt a second

[–] [email protected] 14 points 3 days ago* (last edited 3 days ago) (3 children)

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.

[–] [email protected] 4 points 2 days ago (1 children)

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

[–] [email protected] 1 points 1 day ago

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

[–] [email protected] 4 points 3 days ago (1 children)

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

[–] [email protected] 3 points 2 days ago

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.

[–] [email protected] 3 points 3 days ago

Seriously? Dammit

[–] [email protected] 15 points 3 days ago

Don't forget being forced into the office

[–] [email protected] 11 points 3 days ago

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”.

[–] [email protected] 12 points 3 days ago

Validate your backups, do not let them validate you!

[–] [email protected] 12 points 3 days ago
  1. Social media
[–] [email protected] 9 points 3 days ago

IT team is in charge of backups. They swore up and down that everything was fine and backups are working correctly.

For my department because I believe in Happiness, asked them to send me a backup. It was garbage data.

Then I learned how they verified the backups were working if the file size was bigger than 0kb.

[–] [email protected] 9 points 3 days ago

I have read these bullshit self-help self-affirmation and similar posts so often, my brain refuses to read anything related anymore. Had to do like 3 takes until I noticed.

[–] [email protected] 7 points 3 days ago

excuse me but my raid is going to be a backup just to comply with rule 10.

[–] [email protected] 6 points 3 days ago

I recently changed my hosting provider and wanted to install the new server from the backups I've been creating daily for the last four years. Well, it turned out the backup process got stuck on a lock file in July, 2021. And the email process that should have notified me was broken too. I was so happy I didn't find this out in an emergency and spent more time testing the email notification this time.

[–] [email protected] 4 points 3 days ago

If only my happiness supported non-blocking I/O