AIX Tip of the Week

Subject: Is There an AIX "unerase" Command?

Audience: Administrators

Date: April 26, 2004

Unfortunately, there is no "unerase" command in Unix. The best alternative is to restore from a backup (You are making backups, aren't you?).

As a last resort, you can try a data recovery tool, such as the one at

http://www.compunix.com

(For others, search the web for "aix data recovery".) However, don't depend on these tools to recover data. None guarantee success. It's "hit or miss".

A better strategy is prevention. My suggestions are

  1. Never work as root for non administration tasks. Work as a regular user id
  2. Alias the "rm" command as "rm -i".
  3. Copy files before editing
  4. Make regular backups


Bruce Spencer,
baspence@us.ibm.com

April 26, 2004