Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Recovering from a rm -rf /

Name: Anonymous 2016-04-15 0:14

I run a small hosting provider with more or less 1535 customers and I use Ansible to automate some operations to be run on all servers. Last night I accidentally ran, on all servers, a Bash script with a rm -rf {foo}/{bar} with those variables undefined due to a bug in the code above this line.

All servers got deleted and the offsite backups too because the remote storage was mounted just before by the same script (that is a backup maintenance script).

How I can recover from a rm -rf / now in a timely manner?

Name: Anonymous 2016-04-15 0:17

Flee to Asia.

Name: Anonymous 2016-04-15 1:04

Name: Anonymous 2016-04-15 1:07

>>2
kek

Name: Anonymous 2016-04-15 1:10

Use the backup tapes that you had in secure storage.

Name: Anonymous 2016-04-15 5:20

>>3
I swapped if and of while doing dd. What to do now? – bleemboy Apr 11 at 7:02

Name: Anonymous 2016-04-15 5:20

What kind of distro lets you do that these days?

Name: Anonymous 2016-04-15 6:17

>>5
The original person who did this, from which this is copy/pasted, had his backups mounted on the filesystem. The rm -rf wiped his entire business out. Lol!

Name: Anonymous 2016-04-15 11:31

>>8
Yes, I saw the original. My point was that any decent sys admin will keep at least one set of backups completely disconnected from the system. Plus, while disk backup may be convinient, you can't rm -rf a tape drive.

Name: Anonymous 2016-04-16 5:33

damn

Name: Anonymous 2016-04-16 5:48

I howled with enjoyment when I read this hilarious comedy.
Thank you >>1-, >>3-chan, for your contribution.

Name: Anonymous 2016-04-16 11:39

>>11

Why are you quoting me?

Name: Anonymous 2016-04-19 2:46

Name: Anonymous 2016-04-23 23:34

"The moderators on Server Fault have been in contact with the author about this, and as you can imagine, they're not particularly amused by it," Stack Overflow
said in a statement.

EWS

Name: Anonymous 2016-04-26 4:25

>>3
If he didn't intend to delete everything, why did he use the ``--no-preserve-root'' flag? The entire purpose of that option is to prevent this scenario, but I suppose web appers are too braindead to pick the right flags.

Name: Anonymous 2016-04-26 5:13

>>15
Because
1: he was making up a story
2: even if it was a real story nothing would stop him from using non-gnu utilities
3: even if the story was real and he did use gnu utilities nothing would stop him from using /* and just not mentioning it
``faggot''

Name: >>16 2016-04-26 5:16

Okay, I now see what you mean. The original question didn't have --no-preserve-root. They merged it with another one.

Name: Anonymous 2016-04-26 6:48

Check em

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List