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

Programmer Humor

20039 readers
604 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 37 comments
sorted by: hot top controversial new old
[–] [email protected] 47 points 1 month 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.

[–] Jesus_666 42 points 1 month 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.

[–] chellomere 32 points 1 month 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.

[–] qaz 15 points 1 month ago (2 children)

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

[–] [email protected] 21 points 1 month ago* (last edited 1 month ago) (3 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] 8 points 1 month ago

It shall live on through the generations

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

oral traditions have survived an astoundingly long time, albeit with some bitrot

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

As long as you are fine with corruption.

[–] [email protected] 5 points 1 month ago

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

[–] Pantsofmagic 13 points 1 month ago (1 children)
[–] [email protected] 10 points 1 month ago (3 children)
[–] [email protected] 6 points 1 month 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.

[–] CrazyLikeGollum 2 points 1 month ago

Nah, WoW. Off the company RAID.

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

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

[–] qaz 8 points 1 month ago (1 children)

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

[–] [email protected] 6 points 1 month ago

It also is excellent at keeping out ants.

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

[–] [email protected] 14 points 1 month 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 1 month ago

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

[–] [email protected] 12 points 1 month 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 1 month ago

Evolution in practice!

[–] [email protected] 5 points 1 month ago

what? 🤨

You made me doubt a second

[–] [email protected] 15 points 1 month ago

Don't forget being forced into the office

[–] [email protected] 14 points 1 month ago* (last edited 1 month 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.

[–] Kojichan 4 points 1 month 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

[–] umbraroze 3 points 1 month 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.

[–] alper_celik 4 points 1 month 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 month ago

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

[–] [email protected] 3 points 1 month ago

Seriously? Dammit

[–] [email protected] 12 points 1 month 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 1 month 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.

[–] marcos 12 points 1 month ago

Validate your backups, do not let them validate you!

[–] [email protected] 11 points 1 month ago
  1. Social media
[–] tfw_no_toiletpaper 9 points 1 month 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.

[–] HeyThisIsntTheYMCA 7 points 1 month ago

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

[–] [email protected] 6 points 1 month 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] 5 points 1 month ago

If only my happiness supported non-blocking I/O