Hi all,

I have a similar goal in mind. I am backing up mailboxes and want to avoid manually adding a DLE for any newly added mail account. I rely on cron more than on my memory.

My intent was also to keep things modular. I would like to have a dedicated disklist for every possible autogenerated set of DLEs. Say, one for mailboxes, another one for sites, user homes... Hence the initial question.

Anyway, the issue is solved. I know that multiple includefile stanzas are not possible with amanda-3.3.3 in rhel7.

Thank you for your help,
Nikolai

On 03/09/2016 07:00 PM, Cuttler, Brian (HEALTH) wrote:
Related to that - one of my servers has to deal with a large number of samba 
shares across a couple of zfs partitions, the list of zfs mount points changes 
are shares are added (regularly) or removed (infrequently).

I have a script that removes all of the entries, generates a new list of mount 
points from # zfs list, formats them, appends them to the static part of the 
file.

So Debra's suggestion seems reasonable and doable to me, if you can't just 
leave the fluctuating list as an include.

-----Original Message-----
From: owner-amanda-us...@amanda.org [mailto:owner-amanda-us...@amanda.org]
On Behalf Of Debra S Baddorf
Sent: Wednesday, March 09, 2016 12:37 PM
To: Mikalai Krot <k...@linguistics.rub.de>
Cc: Debra S Baddorf <badd...@fnal.gov>; amanda-users@amanda.org
Subject: Re: includefile in disklist

So, it seems that amanda can only do ONE include file  (just from your
experimental evidence;   I’m not an expert on that, so I”m not answering
that question).

How about having your code, which generates the AUTO list,   start by
making a copy of the  MANUAL list,  and append
the auto entries at the end of that file?      New every day,  but
including a copy of the fixed list at the beginning.

Deb Baddorf
Fermilab


On Mar 9, 2016, at 11:13 AM, Mikalai Krot <k...@linguistics.rub.de>
wrote:
Found a similar question that was not answered

      http://archives.zmanda.com/amanda-archives/viewtopic.php?t=7063

and a related question about an earlier version of amanda.

     http://archives.zmanda.com/amanda-archives/viewtopic.php?t=6669


On 03/09/2016 05:07 PM, Mikalai Krot wrote:
Hallo

Sorry, I should have included version info. So, I am using amanda
3.3.3, from rhel7.
And yes, the DLEs are unique.

I experimented with changing the order of includefile directives and
found out that the last one always wins.
Thanks in advance,
Nikolai Krot

On 03/09/2016 04:06 PM, Bill Carlson wrote:
Hello,

What version of amanda are you using?

Is the combined disklist composed of only unique entries?

Thanks,
--

Bill Carlson

Anything is possible, given Time and Money.

On 03/08/2016 03:48 PM, Mikalai Krot wrote:
Hi list members,

My question is how to combine in a single disklist file definitions
of DLE and includefile directives. Seems that this is impossible. I tried
the following cases:
### case 1 that worked

disklist contains only DLE entries of the form

server.domain.com  /etc            comp-root-tar
server.domain.com  /var/www   comp-root-tar

Result: everything works fine

### case 2, that did not work

I wanted to add more DLEs to the abive disklist by including them
from an automatically generated file
server.domain.com  /etc            comp-root-tar
server.domain.com  /var/www   comp-root-tar

includefile "disklist.auto"

Result: only entries from included disklist.auto work (and reported
by amadmin CONFIG disklist)
### case 3, again, no luck

I thought that mixing two types of entries is not possible and
extracted case 1 into disklist.manual. Now my disklist is
includefile "disklist.manual"
includefile "disklist.auto"

Result: again, only disklist.auto works. Only the last of included
files works
### WTF?

I reread the disklist manual and found an interesting clause

< The disklist file determines which disks will be backed up by
Amanda. The file contains includefile directive or disklist entry (DLE).
so.. literally, only *one* includefile directive xor DLEs. Do I
understand it correctly? Is it a kind of a joke or there is a reason
behind this design?
Best regards,
Nikolai Krot


--
Mikalai Krot
Sprachwissenschaftliches Institut
GB 3/143
Ruhr-Universität Bochum
DE-44801 Bochum
fon +49 234 32-23910
cell +49 157 80283908

--
Mikalai Krot
Sprachwissenschaftliches Institut
GB 3/143
Ruhr-Universität Bochum
DE-44801 Bochum
fon +49 234 32-23910
cell +49 157 80283908

--
Mikalai Krot
Sprachwissenschaftliches Institut
GB 3/143
Ruhr-Universität Bochum
DE-44801 Bochum
fon +49 234 32-23910
cell +49 157 80283908



Email secured by Check Point

--
Mikalai Krot
Sprachwissenschaftliches Institut
GB 3/143
Ruhr-Universität Bochum
DE-44801 Bochum
fon +49 234 32-23910
cell +49 157 80283908

Reply via email to