Quote:
Originally Posted by littleheart
find . -type f -exec rm -f {} \;
|
That's a problem waiting to happen. And totally unnecessary. Even with low script-fu anyone can see that it'll run in your current directory instead of 'find /path/to/cache/dir '.
Anyway, this is going to be a bit of a chicken and egg thing. And in more than one way I'm afraid: as long as a process is alive the data it keeps in memory and files it keeps open can be saved. Unfortunately a process being alive and writing logging also means the files logged to will increase in size and gradually occupy storage space that is free or was freed. Unfortunately also: to be able to do something like login, attach storage, copy out data, anything, you need to be able to access the system. And to access the system you need to be able to run system commands. Yes, the ones that got deleted...
So AFAIK the short answer is no. If your backups are good enough I'd start by taking a another machine and build a replacement to switch to.