Re: include directory and all files under
Oh, of course. I just meant I've never needed it, and the original question was raising an unnecessary application of it, not that the function is useless. Tim Conway Unix System Administration Contractor - IBM Global Services desk:3032734776 [EMAIL PROTECTED] the main use i've found for them is if you have tons and tons of -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: include directory and all files under
Tim Conway wrote: I personally have never used include/excludes, but I remember reading the man page a few years ago, and though it was very well written, I've never had a scenario where they were appropriate. From your specification, I don't think you do either. Simplify. the main use i've found for them is if you have tons and tons of directories, but similarly named files in those directories that need syncing. for instance i've got a web site with thousands of product directories, and there might be a file named "review.html" in all those directories. in that case i run the following include/exclude file: + / + review*.html - *.html - *.php -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: include directory and all files under
rsync -a&otheroptions rsync://carroll.cac.psu.edu/openbsd/snapshots/i386 rsync://carroll.cac.psu.edu/openbsd/snapshots/ports.tar.gz /some/destination/ /some/destination will look liks snapshots but with only i386 and ports.tar.gz in it. You did know that you can specify multiple sources, right? Oh, you could also get it in two steps, for instance, if you wanted to put the contents of i386 up with ports.tar.gz If you insist on using include/excludes, it's a lot tougher. + /i386 + /ports.tar.gz - /* If you exclude '*', you'll also have to explicitely individually include every item under i386... probably not part of your plans. I personally have never used include/excludes, but I remember reading the man page a few years ago, and though it was very well written, I've never had a scenario where they were appropriate. From your specification, I don't think you do either. Simplify. Tim Conway Unix System Administration Contractor - IBM Global Services desk:3032734776 [EMAIL PROTECTED] Harry Putnam <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 06/01/2004 09:33 AM To [EMAIL PROTECTED] cc Subject include directory and all files under Sorry, but it seems everytime I setup a different rsync operation (client only) I end up here unraveling the include/exclude stuff I need. The documentation is quite good but I guess the subject is just quite a bit to chew. To cut to the chase: I want to sync up my own snapshot repository of openbsd. The basic install files. They reside at: rsync://carroll.cac.psu.edu/openbsd/snapshots/i386/* However, there is also a `ports' source file that I want to include that resides at: rsync://carroll.cac.psu.edu/openbsd/snapshots/ports.tar.gz One level up from the other stuff. At that level, there are lots of different architectures etc I don't need so want to exclude. I'm trying this approach rsync [...] (various flags skipped) --include-from="./include" --exclude="*" rsync://carroll.cac.psu.edu/openbsd/snapshots/ /some/destination/ ./include looks like: cat include: ports.tar.gz i386 That gets the ports.tar.gz and and empty directory named i386 Trying: ports.tar.gz i386/* Doesn't get i386 or anything under it: Ditto for this: ports.tar.gz rsync://carroll.cac.psu.edu/openbsd/snapshots/i386/* or ports.tar.gz */i386/* So how is something like this done? And what do I need to know to be able to figure it out next time? -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
include directory and all files under
Sorry, but it seems everytime I setup a different rsync operation (client only) I end up here unraveling the include/exclude stuff I need. The documentation is quite good but I guess the subject is just quite a bit to chew. To cut to the chase: I want to sync up my own snapshot repository of openbsd. The basic install files. They reside at: rsync://carroll.cac.psu.edu/openbsd/snapshots/i386/* However, there is also a `ports' source file that I want to include that resides at: rsync://carroll.cac.psu.edu/openbsd/snapshots/ports.tar.gz One level up from the other stuff. At that level, there are lots of different architectures etc I don't need so want to exclude. I'm trying this approach rsync [...] (various flags skipped) --include-from="./include" --exclude="*" rsync://carroll.cac.psu.edu/openbsd/snapshots/ /some/destination/ ./include looks like: cat include: ports.tar.gz i386 That gets the ports.tar.gz and and empty directory named i386 Trying: ports.tar.gz i386/* Doesn't get i386 or anything under it: Ditto for this: ports.tar.gz rsync://carroll.cac.psu.edu/openbsd/snapshots/i386/* or ports.tar.gz */i386/* So how is something like this done? And what do I need to know to be able to figure it out next time? -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html