this post was submitted on 24 Feb 2026
1144 points (99.4% liked)

Programmer Humor

30021 readers
2587 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
 
top 50 comments
sorted by: hot top controversial new old
[–] tankplanker@lemmy.world 14 points 1 day ago

I did a large scale data rationalization and migration project for a company that is heavily regulated. They can be asked to prove they have this or that document from seven years ago, for no other reason than they should have it. Not having it means big fines and negative press.

Hundreds of Tbs of data got appropriately labelled and migrated, even more got left behind on the old system till it could be decommissioned safely after a period of parallel running.

As part of the decommissioning the data was backed up twice, and I wanted the backup properly tested with some random file restores. Not a full restore, just a few random restores just a proof of life test that the backups worked. I was told that wasn't a reasonable request and it wasn't needed as the architect in charge of backups trusted his backup team and he "designed pragmatic solutions".

I still mean to call in to the regulator in a year or two to trigger a restore request, lets see if a pragmatic solution design is actually the same as performing some basic testing.

[–] JustJack23@slrpnk.net 105 points 2 days ago (2 children)

Also it must come from the back region of France. Otherwise it's just sparkling archive.

[–] eager_eagle@lemmy.world 11 points 2 days ago (2 children)

is it pronounced beaucoup?

[–] Steamymoomilk@sh.itjust.works 6 points 2 days ago

Yes it frence for raid 0

load more comments (1 replies)
[–] calliope@piefed.blahaj.zone 20 points 2 days ago

Ooh sparkling archive actually sounds really fancy, I’ll start using that

[–] Semi_Hemi_Demigod@lemmy.world 67 points 2 days ago* (last edited 2 days ago) (4 children)

One thing I emphasize in every training I do is that you do not have backups until you know exactly how long it will take to restore.

That way you can tell your boss it’ll take three times as long and be hailed as a miracle worker, as Scotty intended.

load more comments (4 replies)

ZFS isn't a backup, but it is a gateway drug

[–] TrickDacy@lemmy.world 19 points 2 days ago (5 children)

These kinds of relentless posts finally got me to write a script that verifies all my backed up files using md5 checksums.

[–] OwOarchist@pawb.social 29 points 2 days ago (2 children)

Verifying the files are there in your backup is only, like 10% of verifying that it's a real, usable backup.

The important question is: can you successfully restore those files from the backup? Can you successfully put them back where they're supposed to be after losing your primary copy?

[–] lightnsfw@reddthat.com 5 points 1 day ago (1 children)

How do you test this without risking your primary copy

[–] OwOarchist@pawb.social 6 points 1 day ago* (last edited 1 day ago)

That's the tricky part, innit?

A few good options:

A) Set up your backup/restore procedures immediately after setting up your fresh new system. And then immediately test them to see if you can successfully restore, before you've done anything important on the new system that you can't afford to lose. If the restoration completely fails, no biggie. You just have to start over on setting up your fresh new system.

B) Attempt to restore your backup to a different system, not your primary one. You'll need a second set of hardware to do that, but if you've got the hardware lying around, it's a great way to test your restore procedure. If you're upgrading your hardware anyway, it could be a good time to do this test -- use your backup restoration procedure to move your data to the new hardware. (As an extra bonus, this doesn't require any downtime on the primary system.)

C) Simulate a complete hard drive failure and replacement by replacing your primary system's drive(s) with a blank new one. If the backup restoration fails, you should (fingers crossed) be able to just plug the old hard drive back in and everything will go back to how it was before your test.

D) Have multiple backups and multiple restore plans, and just hope to fuck that at least one of them actually works during your testing.

Option A can only be done if you're proactive about it and do it at the right time.

Options B and C require extra hardware, but are probably the best choice if you have the hardware or can afford it.

And Option D will always have at least a tiny amount of risk associated with it.

[–] TrickDacy@lemmy.world 4 points 2 days ago* (last edited 1 day ago) (6 children)

I specifically stated that I verify the file content via md5 hash. And I keep original directory structure, so yes if i need to restore these I can.

Edit: no idea what there is to downvote here. It was definitely weird to have an md5 checking script that took days to develop and confirm working as expected and which takes days to run on several TBs of files, dismissed as simply "checking that the files are there". No, it checks that the bytes present in the backed up copy match those in the original. You know, what an md5 checksum is.

[–] ViatorOmnium@piefed.social 3 points 1 day ago (2 children)

Are you sure you have all the files required? Are they restored with the right permissions and metadata automatically?

[–] TrickDacy@lemmy.world 4 points 1 day ago (2 children)

Are you sure you have all the files required?

How could I possibly be sure of that? Obviously I've tried my best to backup everything I would ever need. For many reasons I cannot backup every single file so I've made the best decisions around that I know how.

Are they restored with the right permissions and metadata automatically?

Nothing about it is automatic, by design. Doesn't need to be. And permissions aren't something I particularly care about since there aren't multiple users.

I'm backing up and verifying ~ 14 TB of files and have taken great pains to ensure I'm doing everything right.

Any idea why I got downvoted? Also...why the quizzing?

load more comments (2 replies)
load more comments (1 replies)
load more comments (5 replies)
[–] Bakkoda@lemmy.world 4 points 2 days ago

Backup fire drill tomorrow!

load more comments (3 replies)
[–] thisbenzingring@lemmy.today 30 points 2 days ago (1 children)

it's a fair argument but it's also bullshit if you're following the process and practices that you used when you tested your backup

lots of my job is backups and verification of the backups

[–] Botzo@lemmy.world 17 points 2 days ago (1 children)

Bold of you to assume people/companies test backups more than once.

Case in point: I once got instructed to "enable EBS snapshots" for customer deployments to meet a new backup requirement. Disaster recovery was a completely different feature we only kind of got to a couple years later and afaik, remains manual to this day.

[–] thisbenzingring@lemmy.today 4 points 2 days ago

that's fair and I agree but it's not a true maxim

it's a good principal but I hear it a lot so it's a thing I get annoyed about because it's directed at me even though I have the receipts and proven record that it's not a fact

[–] CentipedeFarrier@piefed.social 16 points 2 days ago (3 children)

What if my backup is just files and there’s nothing to restore?

Like say I take my existing drives, full of totally working media, and duplicate them, use the originals as a backup and the new drives as the active.

Does that count as a backup? No restoration involved.

[–] deadbeef79000@lemmy.nz 6 points 2 days ago* (last edited 2 days ago) (3 children)

In the spirit of this thread: no.

Recovering with the backup should put you back to an operational state equivalent to when the backup was taken.

I.e. if you've restored some files, but something is still not working then the backup failed its purpose.

E.g. the timestamps on the files might be important, do they need to be stamped with the time of the backup or the time of the restore?

load more comments (3 replies)
load more comments (2 replies)
[–] Hupf@feddit.org 9 points 2 days ago (2 children)
[–] StellarSt0rm@lemmy.world 10 points 2 days ago (1 children)

The next day, the novice's disk crashed. Three days later, the novice was still reinstalling software.

I laugh in NixOS

[–] Hupf@feddit.org 5 points 2 days ago (1 children)
[–] StellarSt0rm@lemmy.world 2 points 2 days ago

Okay, fair, upgrading and clean installs take a while. Specially on slow internet connections. But it doesnt really compile much, we have cache.nixos.org with prebuilt binaries for most packages.

[–] 87Six@lemmy.zip 1 points 1 day ago* (last edited 1 day ago)

Adding another link, perhaps not equivalent:

https://freefilesync.org/

I use it to backup media. If the backup roots are your drives, restoring is as easy as copy-paste, merge folders and wait.

Edit: actually, you may be able to just reverse the direction of the sync. I'm not sure.

[–] A_norny_mousse@piefed.zip 6 points 1 day ago (2 children)

I get it, esp. in a professional environment.

But "Schrödinger's data" rubs me the wrong way. The point OOP's making is not a question of whether the data is there or not, it's a question of whether you can restore a botched system with a few commands and in a realistic amount of time.

Case in point: I (private person, private system) never needed to fully restore, knock on wood. But the data is there - I have (manually) restored single files or directories on a few occasions.

[–] OhNoMoreLemmy@lemmy.ml 4 points 1 day ago* (last edited 1 day ago)

If the data is present but difficult to restore, it's annoying. You might need to spend a few days fixing stuff.

If the data is gone, it's devastating and can bankrupt a company. On a personal level it's the same as having all your photos destroyed in a fire. And backups not containing the right data are very common.

[–] Patrikvo@lemmy.zip 2 points 1 day ago

it’s a question of whether you can restore a botched system with a few commands and in a realistic amount of time.

A few years ago my employer was the victim of randsomware. We're speaking here about a massive network and all sorts of databases and services build on top of those, spanning decades and many different technologies. Basicly several thousand employees and a decade long focus on working digital and automation. Data restoration was not an issue. I haven't heard of anyone losing data.

However, restarting all the services was not as easy. Many of these depended on each other and there were some circular dependencies that have grown organicily over the years. Took about two months to restore core functionality (mostly SAP and email) and many more months to restore all sorts of support services that were required for normal day-to-day work. Two years after the incident the last applications were back online.

[–] afk_strats@lemmy.world 11 points 2 days ago

An untested disaster recovery plan is wishful thinking

[–] xSikes@feddit.online 3 points 1 day ago

Damn that’s good

[–] dogdeanafternoon@lemmy.ca 6 points 2 days ago (5 children)

Has anyone actually had failed backup restoration before? It’s been a meme forever, but in my ~15 years of IT, I’ve never seen a backup not restore properly.

[–] BillibusMaximus@sh.itjust.works 11 points 2 days ago

Yep. At one place I worked, we did a big off-site disaster recovery exercise every year.

Most of the time it went fine, but there were multiple years where a restore didn't work due to an issue with one or more tapes. Either the data and/or indexes couldn't be read, or the tape physically failed during the restore.

Backups aren't backups unless they're tested.

[–] Thrawn@lemmy.dbzer0.com 7 points 2 days ago

Absolutely. Used to work at a small MSP. Got ultra unlucky in that we got chosen as the rest case target for a zero day that leveraged our Remote Support tools so our own systems and all of our client systems that were online got hit with ransomware in a very short time frame.

Some clients had local backups to Synology boxes and those worked ok thankfully. However all the rest had backups based on Hyper-V. The other local copy was on a second windows server that also got hit so the local copies didn't help. They did also have a remote copy which wasn't encrypted.

So all good right? Just pull the remote backup copy and apply that.... Yea every time we had ever used the service before had either been single servers that physically died and took disks along on the death or just file level restores.

Those all worked fine. Still sounds like not a problem right? Nope. We found both that a couple of the larger servers had backups that didn't actually have everything in spite of being VM images. No idea how their software even was able to do that.

And the worse part was that their data transfer rate was insanely slow. About 10mbps. Not that per server or par client. Nope that was the max export rate across everything. It would have taken literally months to restore everything at that rate.

I hate to say it but yes we did in fact pay the ransom and the. Had to fight for several days going through getting things decrypted. Then going through months of reinstalling fresh copies and/or putting in new servers. Also changing our entire stack at the same time. Shockingly we handled it well enough we lost no clients. Largely because we were able to prove we couldn't have known ahead of time.

If you read through all that I'll even say the vendors name. It was StorageCraft. I now have a deep hate for them.

Also one more is that with the old Apple HFS+ filesystem based time machine backups it would sometimes report as a valid self checked backup even if it had corruption. It would do this as long as some self check confirmed that it could fix the corruption during a restore. However if you tried directly browsing through the time machine backups it would have files that couldn't be read, unless again you did a full system restore with it.

Nearly lost my wife's semester ending before finding it worked that way.

I can't confirm it but seems it is fully fixed with APFS and might be one of the reasons they spent the effort to make that transition.

[–] Godort@lemmy.ca 8 points 2 days ago* (last edited 2 days ago)

I've had an IT Career for about as long as you. I've had 2 memorable restore failures and got real lucky both times.

The first was a ransomware incident, and the onsite backup was not hit, but it was corrupt. Thankfully, the client had been using a 3-2-1 strategy, and the off-site one was fine.

The second was a situation where a failed update rendered a client's RDS unbootable. This time, they didn't have an on-site backup and the off-site one was corrupt. This time I happened to get immensely lucky in that there was no real data on that RDS, so I was able to spin up a fresh one, and install their LOB app and all was good.

We now test that all backups are stable every 6 months.

[–] how_we_burned@lemmy.zip 5 points 2 days ago

in my ~15 years of IT, I’ve never seen a backup not restore properly.

I remember Outlook backups failing like nothing else during the restore process 25 years ago.

Which was fucked because it would take 2 weeks to rebuild only to find out it didn't work.

[–] raldone01@lemmy.world 4 points 2 days ago (1 children)
load more comments (1 replies)
[–] seggturkasz@lemmy.world 3 points 2 days ago (1 children)

No it is not. Just use cheksum. Like a normal person...

[–] Appoxo@lemmy.dbzer0.com 13 points 2 days ago (3 children)

Cool.
Still doesnt mean you can boot from it

[–] reabsorbthelight@lemmy.world 10 points 2 days ago (1 children)

ChatGPT told me to do

sudo sha256sum /dev/sda1 > /dev/sda1

So. Is this wrong? I thought it backs up the data

[–] A_norny_mousse@piefed.zip 5 points 1 day ago

Yeah we're going to see much more of this moving forward. Yesterday i installed Linux for a friend and they asked about fixing problems. I told them to always look at the date & compatibility when they search for solutions. They then volunteered: "and I guess I can always ask ChatGPT, it's pretty good with these things". I grunted non-committally.

[–] seggturkasz@lemmy.world 1 points 1 day ago

What?? Why do you presume the data is bootable? I'm confused, isn't this about restoring data from some backup data? Am I missing something? Is it a sex thing? I can never tell here at Lemmy...

load more comments (1 replies)
load more comments
view more: next ›