Hello list, I am running rsync 2.5.5 on some Solaris 7 and 8 boxes. I'd like to sync different directories from one box to another. This is my include file: ppukweb2% more rsync-include-file /tmp/loris/testrsync1 /tmp/loris/testrsync2 /tmp/loris/testrsync3 This is the command I run: rsync -azv -e ssh --stats --include-from=/tmp/rsync-include-file ppukweb8:/tmp/loris and this is the output I get: ppukweb2% rsync -azv -e ssh --stats --include-from=/tmp/rsync-include-file ppukweb8:/tmp/loris receiving file list ... done drwxr-xr-x 512 2003/08/13 12:15:01 loris drwxr-xr-x 512 2003/08/13 12:15:01 loris/testrsync1 Number of files: 2 Number of files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 79 Total bytes written: 97 Total bytes read: 95 wrote 97 bytes read 95 bytes 128.00 bytes/sec total size is 0 speedup is 0.00 ppukweb2% Basically, nothing gets tranferred from ppukweb2 to ppukweb8. Can anybody see what I'n doing wrong? Thanks in advance Loris -- Loris Serena Unix Systems Administrator PaddyPower Bookmakers Phone : +353-1-4049633 http://www.paddypowerplc.com Mobile: +353-87-9683760 mailto:lserena@paddypower.com Privileged, confidential and/or copyright information may be contained in this communication. This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended addressee, you may not copy, forward, disclose or otherwise use this e-mail or any part of it in any way whatsoever. To do so is prohibited and may be unlawful. If you have received this email in error please notify the sender immediately. Paddy Power PLC may monitor the content of e-mail sent and received for the purpose of ensuring compliance with its policies and procedures.
Hi Loris, I believe you will need to add a trailing slash to each line to get the contents within. Max -----Original Message----- From: "Loris Serena"<lserena@paddypower.com> Sent: 8/13/03 7:15:40 AM To: "rsync@lists.samba.org"<rsync@lists.samba.org> Subject: Question on --include-from option. Hello list, I am running rsync 2.5.5 on some Solaris 7 and 8 boxes. I'd like to sync different directories from one box to another. This is my include file: ppukweb2% more rsync-include-file /tmp/loris/testrsync1 /tmp/loris/testrsync2 /tmp/loris/testrsync3 This is the command I run: rsync -azv -e ssh --stats --include-from=/tmp/rsync-include-file ppukweb8:/tmp/loris and this is the output I get: ppukweb2% rsync -azv -e ssh --stats --include-from=/tmp/rsync-include-file ppukweb8:/tmp/loris receiving file list ... done drwxr-xr-x 512 2003/08/13 12:15:01 loris drwxr-xr-x 512 2003/08/13 12:15:01 loris/testrsync1 Number of files: 2 Number of files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 79 Total bytes written: 97 Total bytes read: 95 wrote 97 bytes read 95 bytes 128.00 bytes/sec total size is 0 speedup is 0.00 ppukweb2% Basically, nothing gets tranferred from ppukweb2 to ppukweb8. Can anybody see what I'n doing wrong? Thanks in advance Loris -- Loris Serena Unix Systems Administrator PaddyPower Bookmakers Phone : +353-1-4049633 http://www.paddypowerplc.com Mobile: +353-87-9683760 mailto:lserena@paddypower.com Privileged, confidential and/or copyright information may be contained in this communication. This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended addressee, you may not copy, forward, disclose or otherwise use this e-mail or any part of it in any way whatsoever. To do so is prohibited and may be unlawful. If you have received this email in error please notify the sender immediately. Paddy Power PLC may monitor the content of e-mail sent and received for the purpose of ensuring compliance with its policies and procedures. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Try: testrsync1/ testrsync2/ testrsync3/ Since /tmp/loris is your root dir. And put a trailing slash after /tmp/loris/ on rsync command line. Max -----Original Message----- From: Loris Serena [mailto:lserena@paddypower.com] Sent: Wednesday, August 13, 2003 7:39 AM To: Max Kipness Cc: rsync@lists.samba.org Subject: Re: Question on --include-from option. Hi Max! Done that, still no joy... ;-(( ppukweb2% more rsync-include-file /tmp/loris/testrsync1/ /tmp/loris/testrsync2/ /tmp/loris/testrsync3/ ppukweb2% rsync -azv -e ssh --stats --include-from=/tmp/rsync-include-file ppukweb8:/tmp/loris receiving file list ... done drwxr-xr-x 512 2003/08/13 12:15:01 loris drwxr-xr-x 512 2003/08/13 12:15:01 loris/testrsync1 Number of files: 2 Number of files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 79 Total bytes written: 100 Total bytes read: 95 wrote 100 bytes read 95 bytes 130.00 bytes/sec total size is 0 speedup is 0.00 ppukweb2% Max Kipness wrote: Hi Loris, I believe you will need to add a trailing slash to each line to get the contents within. Max -----Original Message----- From: "Loris Serena"<lserena@paddypower.com> Sent: 8/13/03 7:15:40 AM To: "rsync@lists.samba.org"<rsync@lists.samba.org> Subject: Question on --include-from option. Hello list, I am running rsync 2.5.5 on some Solaris 7 and 8 boxes. I'd like to sync different directories from one box to another. This is my include file: ppukweb2% more rsync-include-file /tmp/loris/testrsync1 /tmp/loris/testrsync2 /tmp/loris/testrsync3 This is the command I run: rsync -azv -e ssh --stats --include-from=/tmp/rsync-include-file ppukweb8:/tmp/loris and this is the output I get: ppukweb2% rsync -azv -e ssh --stats --include-from=/tmp/rsync-include-file ppukweb8:/tmp/loris receiving file list ... done drwxr-xr-x 512 2003/08/13 12:15:01 loris drwxr-xr-x 512 2003/08/13 12:15:01 loris/testrsync1 Number of files: 2 Number of files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 79 Total bytes written: 97 Total bytes read: 95 wrote 97 bytes read 95 bytes 128.00 bytes/sec total size is 0 speedup is 0.00 ppukweb2% Basically, nothing gets tranferred from ppukweb2 to ppukweb8. Can anybody see what I'n doing wrong? Thanks in advance Loris -- Loris Serena Unix Systems Administrator PaddyPower Bookmakers Phone : +353-1-4049633 http://www.paddypowerplc.com Mobile: +353-87-9683760 mailto:lserena@paddypower.com Privileged, confidential and/or copyright information may be contained in this communication. This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended addressee, you may not copy, forward, disclose or otherwise use this e-mail or any part of it in any way whatsoever. To do so is prohibited and may be unlawful. If you have received this email in error please notify the sender immediately. Paddy Power PLC may monitor the content of e-mail sent and received for the purpose of ensuring compliance with its policies and procedures. -- 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 -- Loris Serena Unix Systems Administrator PaddyPower Bookmakers Phone : +353-1-4049633 http://www.paddypowerplc.com Mobile: +353-87-9683760 mailto:lserena@paddypower.com
It's a little early here in Dallas and I'm on my first cup... I'm not sure if this is mandatory, but I would also add plus/minus characters as follows: + testrsync1/ + testrsync2/ + testrsync3/ - /* That way you are assured to sync what you want, and not what you don't want. Max -----Original Message----- From: Loris Serena [mailto:lserena@paddypower.com] Sent: Wednesday, August 13, 2003 7:39 AM To: Max Kipness Cc: rsync@lists.samba.org Subject: Re: Question on --include-from option. Hi Max! Done that, still no joy... ;-(( ppukweb2% more rsync-include-file /tmp/loris/testrsync1/ /tmp/loris/testrsync2/ /tmp/loris/testrsync3/ ppukweb2% rsync -azv -e ssh --stats --include-from=/tmp/rsync-include-file ppukweb8:/tmp/loris receiving file list ... done drwxr-xr-x 512 2003/08/13 12:15:01 loris drwxr-xr-x 512 2003/08/13 12:15:01 loris/testrsync1 Number of files: 2 Number of files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 79 Total bytes written: 100 Total bytes read: 95 wrote 100 bytes read 95 bytes 130.00 bytes/sec total size is 0 speedup is 0.00 ppukweb2% Max Kipness wrote: Hi Loris, I believe you will need to add a trailing slash to each line to get the contents within. Max -----Original Message----- From: "Loris Serena"<lserena@paddypower.com> Sent: 8/13/03 7:15:40 AM To: "rsync@lists.samba.org"<rsync@lists.samba.org> Subject: Question on --include-from option. Hello list, I am running rsync 2.5.5 on some Solaris 7 and 8 boxes. I'd like to sync different directories from one box to another. This is my include file: ppukweb2% more rsync-include-file /tmp/loris/testrsync1 /tmp/loris/testrsync2 /tmp/loris/testrsync3 This is the command I run: rsync -azv -e ssh --stats --include-from=/tmp/rsync-include-file ppukweb8:/tmp/loris and this is the output I get: ppukweb2% rsync -azv -e ssh --stats --include-from=/tmp/rsync-include-file ppukweb8:/tmp/loris receiving file list ... done drwxr-xr-x 512 2003/08/13 12:15:01 loris drwxr-xr-x 512 2003/08/13 12:15:01 loris/testrsync1 Number of files: 2 Number of files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 79 Total bytes written: 97 Total bytes read: 95 wrote 97 bytes read 95 bytes 128.00 bytes/sec total size is 0 speedup is 0.00 ppukweb2% Basically, nothing gets tranferred from ppukweb2 to ppukweb8. Can anybody see what I'n doing wrong? Thanks in advance Loris -- Loris Serena Unix Systems Administrator PaddyPower Bookmakers Phone : +353-1-4049633 http://www.paddypowerplc.com Mobile: +353-87-9683760 mailto:lserena@paddypower.com Privileged, confidential and/or copyright information may be contained in this communication. This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended addressee, you may not copy, forward, disclose or otherwise use this e-mail or any part of it in any way whatsoever. To do so is prohibited and may be unlawful. If you have received this email in error please notify the sender immediately. Paddy Power PLC may monitor the content of e-mail sent and received for the purpose of ensuring compliance with its policies and procedures. -- 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 -- Loris Serena Unix Systems Administrator PaddyPower Bookmakers Phone : +353-1-4049633 http://www.paddypowerplc.com Mobile: +353-87-9683760 mailto:lserena@paddypower.com
On Wed, Aug 13, 2003 at 01:15:11PM +0100, Loris Serena wrote:> rsync -azv -e ssh --stats --include-from=/tmp/rsync-include-file > ppukweb8:/tmp/lorisThis command doesn't specify a destination, just a source. Thus, it just lists the source. You must tell rsync where to put the files if you want it to do a copy. Also, your include file will have no effect whatsoever because the default is to include everything from the source. Try this instead: rsync -azv -e ssh --stats /tmp/loris/testrsync[1-3] ppukweb8:/tmp/loris ..wayne..