== How Amanda uses what restore program to use, a correction In AmandaRestorePrograms I wrote, about what to do if Amanda didn't recognize properly recognize [[which sort of dump program ../unix/DumpHistory]] it had used to back up a filesystem: > * put a '_restore_' program (either a cover script or just a symlink > to _ufsrestore_) somewhere in our _$PATH_ when we do Amanda restores. Allow me to correct myself: this doesn't actually work as I wrote it. (When I wrote the original article, we hadn't had to actually test this; we have since then.) The problem is that Amanda does not actually search _$PATH_ when it is executing the restore program (including when it is plain '_restore_'); it simply executes the program directly by path (which is sensible, since it normally knows the exact path). When it tries to execute the default _restore_ program it uses no path, and thus is actually trying to run '_./restore_'. (In Unix terms, Amanda uses _execve()_ instead of _execvp()_ or the like.) So: ~~you have to put your '_restore_' program in the current directory~~ (possibly in the directory that Amanda will restore to, if you've changed that inside _amrecover_). This does work, although it's slightly inconvenient.