Networking Forums

Networking Forums > Computer Networking > Linux Networking > using rsync to send every index* file from one server to another? please help. thanks!!!!!

Reply
Thread Tools Display Modes

using rsync to send every index* file from one server to another? please help. thanks!!!!!

 
 
Dr. E
Guest
Posts: n/a

 
      12-18-2003, 05:28 PM
I have two servers. On the second server I wish to update only the
thousands of index.php and index.html files via rsync from the 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
(E-Mail Removed):/usr/w/var

Thanks!
 
Reply With Quote
 
 
 
 
=?iso-8859-1?q?Sybren_St=FCvel?=
Guest
Posts: n/a

 
      12-18-2003, 06:15 PM
On Thu, 18 Dec 2003 10:28:51 -0800, Dr. E wrote:

> rsync -avz "-e ssh" --include=index --exclude=* /usr/w/var/www
> (E-Mail Removed):/usr/w/var


Perhaps you need to use --include='index*'. You might also want to play
with the order of the --include and --exclude arguments.

Another thing I noticed: you're using SSH logging in as root on the remote
system. Why on earth do you accept root login via SSH?

Sybren
--
(o_ Q: God, root, what is difference?
//\ A: God can change the byte order on the CPU, root can't.
V_/_


 
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get log file for rsync operation? Does rsync also delete remote files? Goran Ivanic Linux Networking 9 05-05-2008 04:58 PM
app to send and receive file over a network? Rui Maciel Linux Networking 17 10-08-2007 11:23 PM
When windows client send a file (about 150kb) to linux server, after about 40kb is sent they are blocked. alones Linux Networking 0 08-22-2007 01:38 AM
how can i send an attached file from command line? rh00667 Linux Networking 2 02-14-2007 09:10 AM
FTP Server test needed - Send BIG file pls Q Broadband 10 08-20-2004 05:15 PM



1 2 3 4 5 6 7 8 9 10 11