Amanda-Users

Re: flush full dumps only

2004-03-19 13:08:56
Subject: Re: flush full dumps only
From: Jean-Louis Martineau <martinea AT iro.umontreal DOT ca>
To: Jonathan Dill <jfdill AT jfdill DOT com>
Date: Fri, 19 Mar 2004 12:55:51 -0500
Hi John,

This simple patch should do a better job, but it should be configurable
by an option in the configuration file:
    eg. taping_level [full|incr|all]

Jean-Louis

On Fri, Mar 19, 2004 at 12:00:16PM -0500, Jonathan Dill wrote:
> I have attached a very simple but effective script that I set up to
> separate full and incremental holding disk files, so that full dumps can
> be flushed to tape while incrementals remain on disk. The script is
> almost so simple as to be a joke, but I don't have any idea what kind of
> bugs can be found.
> 
> WARNING: The script is provided as-is with no warranty express or
> implied. If you screw up your amanda backups do not come crying to me.
> To really make the script work, you will need to change the values of $r
> and $i for your configuration, run it to see what it will do, and then
> remove the "echo" from the beginning of the two lines. If you can't
> figure out what that means, then you probably shouldn't be screwing
> around with this stuff anyway and should forget about it.
> 
> For restores, I think I can flush the latest batch of full dumps, then
> use a modified amanda.conf that looks in the directory where the
> incrementals are stored, but I am not sure how amanda decides where
> holding disk files are located.  I might have a use another script to
> move the incrementals back to the normal holding disk tree, but I will
> cross that bridge when I come to it, to use a rather hackneyed
> expression.
> 
> -- 
> Jonathan Dill <jfdill AT jfdill DOT com>

> #!/bin/tcsh -f
> set r=(/snap/amanda-hd)
> set i=(/snap/amanda-incr)
> cd $r
> set dl=(`find . -depth -type d -print`)
> cd $i
> foreach d ($dl)
>   if (! -d $d) then
>     echo mkdir -p $d
>   endif
> end
> cd $r
> foreach d ($dl)
>   set fl=(`find . -type f \! -name "*.0" -print`)
>   foreach f ($fl)
>     echo mv $f $i/$f
>   end
> end


-- 
Jean-Louis Martineau             email: martineau AT iro.umontreal DOT ca 
Département IRO, Université de Montréal
C.P. 6128, Succ. CENTRE-VILLE    Tel: (514) 343-6111 ext. 3529
Montréal, Canada, H3C 3J7        Fax: (514) 343-5834

Attachment: full_to_tape.diff
Description: Text document

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