richard wrote:
> labelstr "^DailySet1[0-9][0-9]*$"
>
> I have seven tapes to have a cycle in one week. Is it correct to label
> them as DailySet100, DailySet101, DailySet102,...?
>
Given the label string you have chosen in your amanda.conf, it is
perfectly "legal" to use the names you suggest. Bear in mind that you
are *not* obliged to use a labelstr declaration, i.e. you are thorougly
free to choose the names you like. labelstr is there just to help you
organize your tapes "better", if you feel so - I use names from the
ancient greek mythology (Nausika, Tethys, Alkmene, Io...) :-)
> Should I run the command
> amlabel DailySet1 DailySet100
> amlable DailySet1 DailySet101 ....
> as root or as operator?
>
It is always good practice to do
su <amanda user> -c "<amanda command>"
than just
<amanda command>
no matter what <amanda command> is. This means you should prefer
operator from root, if operator is your AMANDA user. The reason for this
is that these commands *may* change some file (configuration, database,
index, whatever AMANDA can change) and if you run them as root, then the
file will be owned by root, so that the next time you run AMANDA as the
AMANDA user, you will get in trouble - see the point ;-) ?
> For the amrestore,
> /usr/sbin/amrestore /dev/nst0 202.85.165.88 '/home$'
> amrestore: missing file header block
> amrestore: WARNING: not at start of tape, file numbers will be offset
> amrestore: 0: reached end of tape: date $?&thgr;«¦
> [&igr;�‘&igr;�½@&igr;&Oacgr;´31 /&igr;�‘
> &thgr;§&Eacgr;&thgr;��&egr;�#
>
I see garbage here and my first guess is that nothing reasonable really
got in your tape. What is your "DUMP" program, dump or tar? Perhaps you
should position the tape ("mt -f /dev/nst0 asf 5", for the 5th file on
your tape) before you try amrestore. But read the RESTORE file in the
docs first. AFAIK using numeric values, instead of hostnames, for hosts
is *not recommended* ;-)
--
Regards
Chris Karakas
Don´t waste your cpu time - crack rc5: http://www.distributed.net