On Tue, May 07, 2002 at 10:18:44AM +0200, Manuel Bouyer wrote: > On Mon, May 06, 2002 at 04:18:08PM -0400, Jean-Louis Martineau wrote: > > On Mon, May 06, 2002 at 11:32:09AM +0200, Manuel Bouyer wrote: > > > On Fri, May 03, 2002 at 03:23:06PM +0200, Manuel Bouyer wrote: > > > > Hi, > > > > I'm looking for a way to force a backup to degraded mode, to holding disk > > > > with 2.4.3b3. Reading the docs I didn't find anything obvious yet. > > > > > > > > Here's what I'm trying to do: I have a 14 slots DLT changer. With a > > > > runspercycle of 7, I have plenty of space left on tapes, so I'd like > > > > to put 2 days of backup on a tape. I'm trying to get amanda do a > > > > degraded backup to holding disk (incrementals only), which should be quite > > > > small (less than 5G), one day out of two. The next day this backup would > > > > be flushed to tape before the scheduled backups. > > > > Of course I'd like to have all this under the same config, so that peoples > > > > running amrecover don't have to know if it was a full or degraded backup. > > > > > > > > The problem is that I don't know how to make it do a degraded dump when > > > > there is a valid tape available. Any idea ? > > > > > > I found a way of doing it: setup a second configuration with a dummy > > > tape device (I used /dev/null) with holding disk, infofile, logdir and indexdir > > > pointing to the same place as the config with tape changer. > > > This seems to work (I tried amrecover from both tape and holding disk). > > > > That's BAD, you can't use the same logdir for two configurations, logfile > > will get erased. You will get the same problem with indexdir if you have > > a disk in both config. > > I don't understand why ... note that both configs won't run at the same day > (one day for backup to tape, next day a degraded backup). > When I use 'history' in amrecover I get all the backups in the list, > with the proper tapes. Also the log files are all there.
It works now because it's a new config, After tapecycle days, one config will erase the log and index of the other config. > > Why not use one config and edit your amanda.conf everyday, that could > > be easily done by cron. > > I though at this, but I prefer static config files. This avoids problems > in case the server goes down in the middle of a backup. I think that running a small sed script to patch a static config file template before every amdump run is easier than using two configs. Jean-Louis -- Jean-Louis Martineau email: [EMAIL PROTECTED] Departement IRO, Universite de Montreal C.P. 6128, Succ. CENTRE-VILLE Tel: (514) 343-6111 ext. 3529 Montreal, Canada, H3C 3J7 Fax: (514) 343-5834