rsync command exclude option

2009-07-24 Thread Kaushal Shriyan
Hi, I have a question about rsync. under /etc/ha.d/ there is a directory called resource.d I want to exclude it i have /etc/ha.d/resource.d in exclude.txt when i run rsync -av /etc/ha.d 172.20.0.3:/root/ttt/ --exclude-from=exclude.txt I still see resource.d being rsynced too on the destination

Re: rsync command exclude option

2009-07-24 Thread Paul Slootman
On Fri 24 Jul 2009, Kaushal Shriyan wrote: I have a question about rsync. under /etc/ha.d/ there is a directory called resource.d I want to exclude it i have /etc/ha.d/resource.d in exclude.txt when i run rsync -av /etc/ha.d 172.20.0.3:/root/ttt/ --exclude-from=exclude.txt I still see

Re: rsync command exclude option

2008-11-27 Thread Michal Soltys
Kaushal Shriyan wrote: Hi again I have a directory logfiles and inside it it has lots of sub directories. Inside it there are lots of .gz, .txt and .sql files I want only .sql files to be rsynced to the destination host is there a way to achieve it using rsync utility Assuming you won't

rsync command exclude option

2008-11-26 Thread Kaushal Shriyan
Hi I do rsync -avz oldUnicelFiles hostB:/home/kaushal --exclude-from=exclude.txt but it rsynced the excluded files too my exclude.txt file contains /home/kaushal/oldUnicelFiles/*.gz /home/kaushal/oldUnicelFiles/*.txt Any ideas as what am i doing wrong

Re: rsync command exclude option

2008-11-26 Thread Paul Slootman
On Wed 26 Nov 2008, Kaushal Shriyan wrote: I do rsync -avz oldUnicelFiles hostB:/home/kaushal --exclude-from=exclude.txt but it rsynced the excluded files too my exclude.txt file contains /home/kaushal/oldUnicelFiles/*.gz /home/kaushal/oldUnicelFiles/*.txt

Re: rsync command exclude option

2008-11-26 Thread Kaushal Shriyan
On Wed, Nov 26, 2008 at 5:28 PM, Michal Soltys [EMAIL PROTECTED] wrote: Kaushal Shriyan wrote: Hi I do rsync -avz oldUnicelFiles hostB:/home/kaushal --exclude-from=exclude.txt but it rsynced the excluded files too my exclude.txt file contains

Re: rsync command exclude option

2008-11-26 Thread Michal Soltys
Kaushal Shriyan wrote: I want only .sql files to be rsynced to the destination host. when i do rsync -avz oldUnicelFiles hostB:/home/kaushal --include-from=include.txt it rsync all the files under oldUnicelFiles, I mean even .gz and .txt files too. ~/oldUnicelFiles $ ls

Re: rsync command exclude option

2008-11-26 Thread Michal Soltys
Kaushal Shriyan wrote: Hi I do rsync -avz oldUnicelFiles hostB:/home/kaushal --exclude-from=exclude.txt but it rsynced the excluded files too my exclude.txt file contains /home/kaushal/oldUnicelFiles/*.gz /home/kaushal/oldUnicelFiles/*.txt Any

Re: rsync command exclude option

2008-11-26 Thread Kaushal Shriyan
On Wed, Nov 26, 2008 at 7:05 PM, Michal Soltys [EMAIL PROTECTED] wrote: Kaushal Shriyan wrote: I want only .sql files to be rsynced to the destination host. when i do rsync -avz oldUnicelFiles hostB:/home/kaushal --include-from=include.txt it rsync all the files under oldUnicelFiles, I