Re: Backup History question
2003-08-12 16:20:46
On Tue, Jul 22, 2003 at 10:28:43PM -0400, Jonathan B. Bayer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello amanda-users,
>
> How can I easily and quickly get a list of the last n backup tapes which
> were used? I need to be able to identify the tapes for rotation to an
> offsite storage facility.
Another odd possibility I mention only because I never noticed the
"find" command of amadmin.
amadmin DS1 find |
tr -s ' ' '\t' |
cut -f1,5 |
grep '^2003' |
grep -v ' ---$' |
sort |
uniq
Note that the same tape could be listed multiple times (if it
contains multiple amdumps). So select the ones you want by
something other than a tail -n command at the end.
Also I think if your disk names might have spaces in them,
this may not work.
--
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)
|
|
|