Answer the question
In order to leave comments, you need to log in
How to find out what happened after executing a command with a variable in the terminal?
There is a script for database backup and it has a command with a variable
find $dest/* -type f -mtime +30 -delete
which I accidentally executed in the terminal.
Find: '/proc/22150/task/ 22150
/fdinfo/6': No such file or directory
find: '/proc/22150/fdinfo/5': No such file or
directory I can't log in to the console or FTP/SFTP
What happened?
PS. This is no longer a question of recovery (I'll pay the hoster), but of understanding what happened
Answer the question
In order to leave comments, you need to log in
Well, you got an empty $dest variable, which means
find /* -type f -mtime +30 -delete was completed
. you just deleted a bunch of different files. Except for those that have changed in the last month. If they performed from root, then they killed the system and data.
Reinstall the system, restore sites from a backup.
If there are no backups, then immediately boot from the flash drive, try to recover deleted site files using the photorec utility.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question