Originally posted by: blanckea
Hello,
There is actually no security in rm command on AIX, I mean the file is not backed up before removing.
If you want to do so, you may use a wrapper script to the rm command, but this would work only for files removed by rm command.
So anyway the best is always to do backups.
If you already removed a file that was not backed up and you need to recover it. There is a procedure to do so using fsdb, note that procedure will work only if that inode was not already reused for another file created latter.
Note also that fsdb can destroy all or part of your filesystem structure if not used correctly so a backup of the filesystem must be done before using fsdb.
A sample of fsdb usage to recover a deleted file can be found at :
http://www.unix-middleware.com/pages/aix/AIXnotes1.htm There is also a tool available from
http://www.compunix.com/ ,for free you can download the tool that will list the files that could be recovered, but to actually recover the files you will need to purchase a license from that site.
Regards
#AIX-Forum