Why does `amrecover` start over and over again, when I tell it to extract from tape?

From wiki.zmanda.com
Jump to navigation Jump to search

This article is a part of the Troubleshooting collection.

Problem

When running amrecover(8)

Solution

Make sure you call amrecover(8) with the proper non-rewinding device as option, for example (on Linux):

 amrecover daily -d /dev/nst0

Explanation

This is related to the usage of the rewinding tape-device.

amrecover(8) basically runs amrestore(8) in the background, which searches through your tape(s) for the tar/dump-file containing the requested files. If you use the rewinding tapedevice, amrestore(8) will restore the requested files, after that the tape-device will rewind, which will cause amrestore(8) to find the same tar/dump-file again, and start over ....

The bad thing about this is that this loop won't end and the restored files will be wiped out at every turn, also your tape will be stressed ...