Re: forcing level 0 backups

2001-02-22 Thread David Lloyd


amadmin MYCONFIG force [share name]

You could use a script to walk through you dump file thingo to do
this...

DL

-- 
Domine O venite O sacramentum eo deo
Domine O venite O sacramentum eo deo
Omnem crede diem tibi diluxisse supremum.
Sacramentum eo deo



Re: forcing level 0 backups

2001-02-22 Thread Gerhard den Hollander

* Ben Elliston [EMAIL PROTECTED] (Thu, Feb 22, 2001 at 11:17:58PM +1100)
 Is there any easy way to force a level 0 backup of every disk in the
 disklist?

amadmin config force hostname
repeat for each hostname


Gerhard,  @jasongeo.com   == The Acoustic Motorbiker ==   
-- 
   __O  I have a spelling checker.  It came with my PC.
 =`\,  It plane lee marks four my revue miss steaks aye can knot see.
(=)/(=) To rite with care is quite a feet Of witch won should be proud,
And wee mussed dew the best wee can, Sew flaws are knot aloud




Re: forcing level 0 backups

2001-02-22 Thread Christopher Linn

hi ben,

On Thu, Feb 22, 2001 at 11:17:58PM +1100, Ben Elliston wrote:
 Is there any easy way to force a level 0 backup of every disk in the
 disklist?

you of course need to use "amadmin CONFIG force hostname [disk]".
now, since at least "hostname" is a required arg to amadmin force,
i use some shell script stuff to help out here.  this apporoximates
what i do:

8-
#!/bin/sh

  awk '{print $1}' /path/to/CONFIG/disklist | \
sed -e 's/^#.*//' | sort | uniq \
 /path/to/CONFIG/Forcelist

  for host in `cat /path/to/CONFIG/Forcelist` ; do
#echo "EXEC: amadmin CONFIG force $host"
amadmin CONFIG force $host
  done

8-

i would suggest that you read that carefully and make sure you 
understand what each cmd in the pipes is doing, and in the for-loop
you should comment-out the amadmin cmd and uncomment the echo cmd
until you are sure it will be doing what you want it to  ;*)

 Ben

chris

-- 
Christopher Linn, [EMAIL PROTECTED]| By no means shall either the CEC
Staff System Administrator| or MTU be held in any way liable
  Center for Experimental Computation | for any opinions or conjecture I
Michigan Technological University | hold to or imply to hold herein.



RE: forcing level 0 backups

2001-02-22 Thread Ben Hyatt

 Is there any easy way to force a level 0 backup of every disk in the
 disklist?

man amadmin

force hostname [ disks ]
  Force the disks on hostname to do a full level 0 backup
  during the next Amanda run.

EXAMPLES
 Request three specific file systems on machine-a get a  full
 level 0 backup during the next Amanda run.

 Note the use of "^/$" to get the root file system.   Without
 the extra regular expression characters, just "/" would have
 matched all the file systems on machine-a.

  $ amadmin config force machine-a "^/$" /var /usr
  amadmin: machine-a:/ is set to a forced level 0 tonight.
  amadmin: machine-a:/var is set to a forced level 0 tonight.
  amadmin: machine-a:/usr is set to a forced level 0 tonight.

 Ben

-Ben