Amanda-Users

Re: Listing a tape content ?

2005-10-25 09:48:10
Subject: Re: Listing a tape content ?
From: Jon LaBadie <jon AT jgcomp DOT com>
To: "'Amanda (E-mail)'" <amanda-users AT amanda DOT org>
Date: Tue, 25 Oct 2005 00:12:32 -0400
On Tue, Oct 25, 2005 at 04:47:47PM +1300, Lloyd Weehuizen wrote:
> 
>> -----Original Message-----
>> From: owner-amanda-users AT amanda DOT org
>> [mailto:owner-amanda-users AT amanda DOT org] On Behalf Of Guy Dallaire
>> Sent: Tuesday, 25 October 2005 2:28 a.m.
>> To: Amanda (E-mail)
>> Subject: Listing a tape content ?
>> 
>> 
>> Is there an easy way to list the content of an amanda tape ?
>> 
>> I'd like to have the file / directory names and the last modification
>> dates of the files.
> 
> It depends on how you backed up your disk. Assuming you're using GNU
> tar, you'd want to do something like this:
> 
> amrestore -p /dev/nst0 <server-name> <disk> | tar -tvf -
> 
> That pipes the output of amrestore through tar which just displays the
> contents. However this will not give you the modification dates of the
> files and I'm not exactly sure how you'd do that :(
> 

You already did it.  The "v" option of tar.

For a file listing, the index files show what was backed up on what date.
But not their mod times.

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

<Prev in Thread] Current Thread [Next in Thread>