Suppose I waant to rsync only index.html and index.php files. use --include & --exclude?

This is a discussion on Suppose I waant to rsync only index.html and index.php files. use --include & --exclude? within the Rsync forums, part of the Networking and Network Related category; I have a two servers. On the second server I wish to updated only the thousands of index.php and ...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-18-2003
Dr. E
 
Posts: n/a
Default Suppose I waant to rsync only index.html and index.php files. use --include & --exclude?

I have a two servers. On the second server I wish to updated only the
thousands of index.php and index.html files via rsync from teh first
server.

I don't want to rsync any other files over--only files with "index" in
their name.

How can I do this using rsync with --include and --exclude?

This doesn't work:

rsync -avz "-e ssh" --include=index --exclude=* /usr/w/var/www
root@server.com:/usr/w/var

Thanks!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:54 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0