[lug] exclude one file rsync

Paul Nowosielski paulnowosielski at yahoo.com
Fri Nov 12 08:31:48 MST 2010


No that didn't work. I had to use

--filter='- config.php'

--exclude seems to be for directories
or for pattern matching but it did not
work for a single file name.




On 11/11/2010 10:52 PM, Jason Schaefer wrote:
> Paul
>
> Can't you use --exclude 'config.php' ??
>
> On Thu, Nov 11, 2010 at 1:31 PM, Paul Nowosielski
> <paulnowosielski at yahoo.com> wrote:
>   
>>
>> Ok I got it:
>>
>> --filter='- config.php'
>>
>> Thanks!
>>
>> Paul
>>
>>
>> ----- Original Message ----
>> From: Paul Nowosielski <paulnowosielski at yahoo.com>
>> To: lug <lug at lug.boulder.co.us>
>> Sent: Thursday, November 11, 2010 13:11:03
>> Subject: [lug] exclude one file rsync
>>
>> Hi,
>>
>> I'm trying to exclude on file during rsync.
>> I just can't seem to be able to get it to work.
>>
>> my exclude is this:
>>
>> --exclude '.svn' --exclude 'dedup/ddproc/upload/' --exclude '*.log' --exclude
>> 'config.php' "
>>
>> I'm trying not to sync config.php because the DB hosts are different on the
>> servers.
>>
>> Any insight?
>>
>> Thank you,
>>
>> Paul
>>
>>
>>
>> _______________________________________________
>> Web Page:  http://lug.boulder.co.us
>> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>>
>>
>>
>> _______________________________________________
>> Web Page:  http://lug.boulder.co.us
>> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>>
>>     
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>
>   



More information about the LUG mailing list