Wpis z mikrobloga

Jak przy pomocy mniej niż 10 znaków zniszczyć swoją firmę:

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 run on all servers a Bash script with a rm -rf {foo}/{bar} with that variables undefined due to a big 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).

http://serverfault.com/questions/769357/recovering-from-a-rm-rf

#stackoverflow #linux
  • 14
  • Odpowiedz
  • Otrzymuj powiadomienia
    o nowych komentarzach

Nie próbuję na roocie, ale u mnie "rm -rf /" wypisuje błąd:


@HalEmmerich: tak jest w nowszych linuxach, w starszych nie ma takiego zabezpieczenia ale nie można wykluczyć że serwer tego gościa to jakiś starszy redhat/debian/centos/cokolwiek
  • Odpowiedz