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

From wiki.zmanda.com
Jump to navigation Jump to search
(reformat, use header template)
(man links)
 
Line 2: Line 2:
=Problem=
=Problem=


When running [[amrecover]]
When running {{man|8|amrecover}}


=Solution=
=Solution=
Make sure you call [[amrecover]] with the proper non-rewinding device as option, for example (on Linux):
Make sure you call {{man|8|amrecover}} with the proper non-rewinding device as option, for example (on Linux):
   amrecover daily -d /dev/nst0
   amrecover daily -d /dev/nst0


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


[[amrecover]] basically runs [[amrestore]] 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]] will restore the requested files, after that the tape-device will ''rewind'', which will cause [[amrestore]] to find the same tar/dump-file again, and start over ....
{{man|8|amrecover}} basically runs {{man|8|amrestore}} in the background, which searches through your tape(s) for the tar/dump-file containing the requested files. If you use the rewinding tapedevice, {{man|8|amrestore}} will restore the requested files, after that the tape-device will ''rewind'', which will cause {{man|8|amrestore}} 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 ...
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 ...

Latest revision as of 22:49, 30 June 2008

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 ...