This morning while I was doing a bit of work on my production server, when I accidentally executed the following command:
sudo rm -r /*
Sadly, the server no longer accept my public key or password for any user via SSH.
And files were hosted on /home directory instead of /var/www is there any way to restore the files?
And after this incident happen I took AWS Snapshot of AWS EC2. Then Relaunch it by taking new server.
Although I lost the all my files and project. But I discovered that I still have database. As I've also hosted another application under /var/www directory it seems to running fine.
Would it possible to recover the mysql database from Secondary Image on server?
I tried running executing previous mysql_user and mysql_password on my new server it is not authenticating.
rmbinary that treats the '/' differently (that by default uses--preserve-root) and there's nothing to worry https://www.gnu.org/software/coreutils/manual/html_node/Treating-_002f-specially.html#Treating-_002f-specially – Bob May 04 '21 at 07:17/*that means the actual parameters were/bin /boot /dev /etc... once expanded. – A.B May 04 '21 at 22:54