RE: exclude list format
John, I tried your scripts and they helped some. I am not sure if you can help me or not. I had some questions on backing up Microsoft clients. We are trying to backup Microsoft clients and we want to exclude some of the files and directories. We tried putting the exclude file on the client and on the server and didn't have any luck. It did not matter what syntax we used, the files were always backed up. Have you done anything like this or have any suggestions? Here is what we are running: amanda@parody:p0 /home/amanda amadmin x version build: VERSION="Amanda-2.5.0" BUILT_DATE="Mon Oct 23 13:56:02 CDT 2000" BUILT_MACH="FreeBSD parody 4.1.1-RELEASE FreeBSD 4.1.1-RELEASE #3: Fri Oct 20 12:21:37 CDT" amanda@parody:p0 /home/amanda /usr/local/bin/gtar --version tar (GNU tar) 1.13 Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. smbclient version 2.0.7 Thanks, William William Lorfing System Administrator VIEO, Inc. 12416 Hymeadow Drive, Suite 200 Austin, TX 78750 Office: (512) 257-3031 x 108 Fax:(512) 257-3031 [EMAIL PROTECTED] http://www.vieo.com VIEO: Enabling Fabric Computing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John R. Jackson Sent: Thursday, March 15, 2001 7:22 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: exclude list format I understand you figured out the syntax (congratulations! -- it always gives me a headache :-), so the following is just rambling. The problem is that even though I am telling it to exclude these files AND use tar it still creates the tarball with those directories which causes the dump to fail. What is the syntax of the exclude file. ... FYI, I wrote some scripts to help me figure out and test exclude patterns: ftp://gandalf.cc.purdue.edu/pub/amanda/gtartest-exclude Does anyone know of a GOOD place for amanda docs. All I can find says use fearture A but gives no way of how to use feature A. For example the man page talks about the exclude file but does not cover the format of the exclude file. Have you looked at http://www.backupcentral.com/amanda.html? There is a section in there about exclusion patterns, although I had to fight through figuring them out, so make no guarantees they are 100% correct. As to the exclude syntax specifically, why should Amanda document GNU tar parameters? If you're having trouble (as many, **many**, people do, including myself :-) with a feature of GNU tar, it seems to me that's the place you should go for documentation. On the other hand :-), Amanda is a (the) *heavy* user of this feature, so it would probably be good to write a docs/EXCLUDE file for release. At a minimum, we should at least make it clear that "exclude" maps to "--exclude=PATTERN" and "exclude list" maps to "--exclude-from=FILE" so you could have some hope of finding the right stuff in the GNU tar docs. Any volunteers? (yeah, I thought not :-). Why does amcheck not find these errors? What errors? Amcheck knows nothing about exclusions (although I think it will check for the file). Are you asking that it run GNU tar and make sure doing it with the exclusions and without generates different results? That would be a bit, shall we say, time consuming. Andrew Hall John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
Re: exclude list format
We are trying to backup Microsoft clients and we want to exclude some of the files and directories. We tried putting the exclude file on the client and on the server and didn't have any luck. It did not matter what syntax we used, the files were always backed up. Have you done anything like this or have any suggestions? This is trivial. All you have to do is convince the Samba folks to support it. :-) It's not an Amanda issue. It's a lack of feature support in smbclient. William John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
Re: exclude list format
I have a suggestion for you Andrew (of course it involves more work for you). A number of times I have seen on this list (and I have experienced it myself) that exclusion problems are related to broken versions of GNU tar. At a minimum, you should have a "Broken GNU tar" section, and let other people tell you what those broken versions are. [EMAIL PROTECTED] wrote: Any volunteers? (yeah, I thought not :-). I would be willing to write an EXCLUDE doc. It took me over two hours yesterday to figure this one out. The tar man page and a ps on the client were my friends here. I would need a least a week to allow my schedule to open up. Is there any start point yet? Andrew Hall -- Tom Schutter (mailto:[EMAIL PROTECTED]) Platte River Associates, Inc. (http://www.platte.com)
Re: exclude list format
Thankyou. I will add it. Could the list members please provide me details of this problem and the version of gnutar that have been known to cause this error. Thank you in advance. Andrew Hall On Fri, 16 Mar 2001, Tom Schutter wrote: I have a suggestion for you Andrew (of course it involves more work for you). A number of times I have seen on this list (and I have experienced it myself) that exclusion problems are related to broken versions of GNU tar. At a minimum, you should have a "Broken GNU tar" section, and let other people tell you what those broken versions are. [EMAIL PROTECTED] wrote: Any volunteers? (yeah, I thought not :-). I would be willing to write an EXCLUDE doc. It took me over two hours yesterday to figure this one out. The tar man page and a ps on the client were my friends here. I would need a least a week to allow my schedule to open up. Is there any start point yet? Andrew Hall -- Tom Schutter (mailto:[EMAIL PROTECTED]) Platte River Associates, Inc. (http://www.platte.com)
Re: exclude list format
I would be willing to write an EXCLUDE doc. ... Great! ... Is there any start point yet? I'd start with the GNU tar docs. A rough first cut would be to just take them and make a single document that could be released as part of Amanda. Then add more examples "typical" (whatever that means) of what Amanda users try to do (e.g. cut off a whole top level directory). Andrew Hall John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
Re: exclude list format
I understand you figured out the syntax (congratulations! -- it always gives me a headache :-), so the following is just rambling. The problem is that even though I am telling it to exclude these files AND use tar it still creates the tarball with those directories which causes the dump to fail. What is the syntax of the exclude file. ... FYI, I wrote some scripts to help me figure out and test exclude patterns: ftp://gandalf.cc.purdue.edu/pub/amanda/gtartest-exclude Does anyone know of a GOOD place for amanda docs. All I can find says use fearture A but gives no way of how to use feature A. For example the man page talks about the exclude file but does not cover the format of the exclude file. Have you looked at http://www.backupcentral.com/amanda.html? There is a section in there about exclusion patterns, although I had to fight through figuring them out, so make no guarantees they are 100% correct. As to the exclude syntax specifically, why should Amanda document GNU tar parameters? If you're having trouble (as many, **many**, people do, including myself :-) with a feature of GNU tar, it seems to me that's the place you should go for documentation. On the other hand :-), Amanda is a (the) *heavy* user of this feature, so it would probably be good to write a docs/EXCLUDE file for release. At a minimum, we should at least make it clear that "exclude" maps to "--exclude=PATTERN" and "exclude list" maps to "--exclude-from=FILE" so you could have some hope of finding the right stuff in the GNU tar docs. Any volunteers? (yeah, I thought not :-). Why does amcheck not find these errors? What errors? Amcheck knows nothing about exclusions (although I think it will check for the file). Are you asking that it run GNU tar and make sure doing it with the exclusions and without generates different results? That would be a bit, shall we say, time consuming. Andrew Hall John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]