Re: includefile in disklist
thanks! that makes sense On 03/10/2016 02:37 PM, Bill Carlson wrote: In addition note that current Amanda is 3.3.9. Yes, distributions do usually include older versions of most packages. However, it is good practice to consider checking newer version or looking for bugs in your current version first. In addition, recommend consulting man pages for amanda on your installed system, these will cover your specific version. The website covers latest. For example, my 3.3.1 install man page for disklist shows no mention of includefile. -- Mikalai Krot Sprachwissenschaftliches Institut GB 3/143 Ruhr-Universität Bochum DE-44801 Bochum fon +49 234 32-23910 cell +49 157 80283908
Re: includefile in disklist
In addition note that current Amanda is 3.3.9. Yes, distributions do usually include older versions of most packages. However, it is good practice to consider checking newer version or looking for bugs in your current version first. In addition, recommend consulting man pages for amanda on your installed system, these will cover your specific version. The website covers latest. For example, my 3.3.1 install man page for disklist shows no mention of includefile. -- Bill Carlson Anything is possible, given Time and Money. On 03/10/2016 05:36 AM, Nuno Dias wrote: Hi, The question was answer ... see the link, with a patch from Jean-Louis Martineau https://readlist.com/lists/amanda.org/amanda-users/3/19166.html Cheers, Nuno On Wed, 2016-03-09 at 18:13 +0100, Mikalai Krot 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 /etccomp-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 /etccomp-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
Re: includefile in disklist
Hi, The question was answer ... see the link, with a patch from Jean-Louis Martineau https://readlist.com/lists/amanda.org/amanda-users/3/19166.html Cheers, Nuno On Wed, 2016-03-09 at 18:13 +0100, Mikalai Krot 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 -- Nuno Dias <nd...@lip.pt> LIP smime.p7s Description: S/MIME cryptographic signature
Re: includefile in disklist
On Wed, Mar 09, 2016 at 07:30:56PM +0100, Mikalai Krot wrote: > Hi all, > ... > 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 Is there a second observation of that defect in 3.3.3? jl -- Jon H. LaBadie j...@jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)
Re: includefile in disklist
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 /etccomp-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 /etccomp-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
Re: includefile in disklist
Hi, Thanks! Good to know the world is moving in the right direction :) When I see the package updated to amanda-3.3.5, I will refactor my configs. Added a TODO for indefinite future. BR, Nikolai Krot On 03/09/2016 07:04 PM, Jean-Francois Malouin wrote: Hi, Not sure if this is going to help you but my tests with amanda-3.3.5 show that multiple "includefile" stanzas work, along with or without inline DLEs. My "test" uses the command "/opt/amanda/sbin/amadmin disklist" and checks that its output corresponds to the content of the disklist and the includefiles. So all the following disklist files seem to behave as expected: 1- one inline DLE + 1x includefile: client /disk1 app-amgtar includefile "duh-disklist-1" 2- one DLE + 2x includefiles: client /disk1 app-amgtar includefile "duh-disklist-1" includefile "duh-disklist-2" 3- only includefiles: client /disk1 app-amgtar includefile "duh-disklist-1" includefile "duh-disklist-2" cheers, jf * Debra S Baddorf <badd...@fnal.gov> [20160309 12:37]: 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 /etccomp-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 /etccomp-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 -- Mikalai Krot Sprachwissenschaftliches Institut GB 3/143 Ruhr-Universität Bochum DE-44801 Bochum fon +49 234 32-23910 cell +49 157 80283908
Re: includefile in disklist
Hi, Not sure if this is going to help you but my tests with amanda-3.3.5 show that multiple "includefile" stanzas work, along with or without inline DLEs. My "test" uses the command "/opt/amanda/sbin/amadmin disklist" and checks that its output corresponds to the content of the disklist and the includefiles. So all the following disklist files seem to behave as expected: 1- one inline DLE + 1x includefile: client /disk1 app-amgtar includefile "duh-disklist-1" 2- one DLE + 2x includefiles: client /disk1 app-amgtar includefile "duh-disklist-1" includefile "duh-disklist-2" 3- only includefiles: client /disk1 app-amgtar includefile "duh-disklist-1" includefile "duh-disklist-2" cheers, jf * Debra S Baddorf <badd...@fnal.gov> [20160309 12:37]: > 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 /etccomp-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 /etccomp-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 > > > -- Jean-Francois Malouin | IT Operations and Infrastructure McConnell Brain Imaging Centre | MNI | McGill University
Re: includefile in disklist
Hi Debra, thanks for the suggestion! In the end, this is what I did. ( cat disklist.manual generator_of_other_DLEs ) > disklist Not a big issue, it is the same script as before with a slight modification. I am happy amanda now works, though knowing the limitations of disklist and reading that in amanda manuals would be (have been) really helpful and time-saving. Thanks again and best regards, Nikolai Krot On 03/09/2016 06:37 PM, Debra S Baddorf wrote: 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 /etccomp-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 /etccomp-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 -- Mikalai Krot Sprachwissenschaftliches Institut GB 3/143 Ruhr-Universität Bochum DE-44801 Bochum fon +49 234 32-23910 cell +49 157 80283908
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 /etccomp-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 /etccomp-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 >
Re: includefile in disklist
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 /etccomp-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 /etccomp-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
Re: includefile in disklist
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 /etccomp-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 /etccomp-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
Re: includefile in disklist
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 /etccomp-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 /etccomp-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
includefile in disklist
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 /etccomp-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 /etccomp-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
includefile in disklist
Hi, In amanda-3.3.2 if I use includefile directive in disklist, that directive must be the first thing in the file, and only one includefile is allowed, this is a feature or a bug? Cheers, Nuno -- Nuno Dias nd...@lip.pt LIP
Re: includefile in disklist
On 02/25/2013 06:55 AM, Nuno Dias wrote: Hi, In amanda-3.3.2 if I use includefile directive in disklist, that directive must be the first thing in the file, and only one includefile is allowed, this is a feature or a bug? Cheers, Nuno It is a bug, the attached patch fix it. Jean-Louis diff --git a/server-src/diskfile.c b/server-src/diskfile.c index d8e11dc..91e27db 100644 --- a/server-src/diskfile.c +++ b/server-src/diskfile.c @@ -38,7 +38,7 @@ #include util.h #include amxml.h -static am_host_t *hostlist; +static am_host_t *hostlist = NULL; static netif_t *all_netifs; /* local functions */ @@ -58,8 +58,9 @@ read_diskfile( char *line = NULL; /* initialize */ -hostlist = NULL; -lst-head = lst-tail = NULL; +if (hostlist == NULL) { + lst-head = lst-tail = NULL; +} line_num = 0; /* if we already have config errors, then don't bother */