So, the idea is to get only fairly recent (no more than 3 day old)
files that contain "_F_".

Not sure if the nofull strategy will deselect some of the files
in the include list on you. Depends on how often you generate files
with "_F_" in the file name and how often you are running amanda.

Do you want "_F_" in the selection and nofull and skip exluding
files that are more than 3 days old ? If you are backing up more
frequently than 3 days and you are also generating _F_ files more
frequently than 3 days you will select them for the include file
but I don't know if they will be backed up or ignored with the
nofull strategy.

Let me ask another way. I assumed that nofull would set the
dump'd bit to level 1 in the file so that the next level 1
would not back it up again. Is that the case ?

On Tue, Nov 29, 2011 at 05:21:02PM +0100, Stefan G. Weichinger wrote:
> 
> Draft:
> 
> -> current state of things, first amdump running:
> 
> CIFS-share mounted at /mnt/vranger
> 
> disklist with stuff like:
> 
> backup /mnt/vranger/wints01_4233ab62-a53c-0894-05e8-6eac5cb47ac5 {
> vranger-incr
> include list "/etc/amanda/vsphere/includes/wints01.includes"
> } 1
> 
> # dumptype vranger-incr
> 
> define dumptype vranger-incr {
>     global
>     comment "Only latest fulls of vranger"
>     compress none
>     strategy nofull
> }
> 
> The include-files are generated by this VERY-quick-and-dirty-bash-script:
> 
> ----------------------------
> #!/bin/bash
> 
> PATHNAME="/mnt/vranger"
> 
> for i in $PATHNAME/*; do
> 
> # don't cd into files ...
> if [ -d $i ]
> then
> cd $i;
> 
> # cut everything after the VMs name
> STRING1=${i%%_*};
> # cut everything path-related to get VM-name only
> STRING2=${STRING1##*/};
> 
> # find full backups within last 3 days
> find . -type f -mtime -3 -name "*.var" | grep "_F_" >>
> /etc/amanda\/vsphere/includes/$STRING2.includes
> 
> fi
> 
> done
> ----------------------------
> 
> Yeah, I know, the include-files should be deleted at first ... there are
> quite some more things to polish. It's a try ...
> 
> Stefan
---
   Brian R Cuttler                 [email protected]
   Computer Systems Support        (v) 518 486-1697
   Wadsworth Center                (f) 518 473-6384
   NYS Department of Health        Help Desk 518 473-0773



IMPORTANT NOTICE: This e-mail and any attachments may contain
confidential or sensitive information which is, or may be, legally
privileged or otherwise protected by law from further disclosure.  It
is intended only for the addressee.  If you received this in error or
from someone who was not authorized to send it to you, please do not
distribute, copy or use it or any attachments.  Please notify the
sender immediately by reply e-mail and delete this from your
system. Thank you for your cooperation.


Reply via email to