Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-08-2004, 03:30 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2004
Location: Norfolk, Ne
Distribution: RedHat 7 and 9
Posts: 12
Rep:
|
Replicating files between servers.
I hope this is not a stupid question, I am still early in the learning stage. I am looking for advice on how to replicate files on a daily basis from SYSTEM A (Fedora core 2) to SYSTEM B (Red Hat 9). They are both on the same subnet and behind a firewall so security is not a high priority. I am just needing an easy, automated way to update some files on SYSTEM B with files from SYSTEM A daily. Thanks for any help anyone can provide.
George
|
|
|
|
12-08-2004, 04:12 PM
|
#2
|
|
Member
Registered: Jan 2003
Posts: 217
Rep:
|
Rsync over ssh:
Code:
#rsync -e ssh -avzp --delete [/SYSTEM_A/dir] username_on_SYSTEM_B@SYSTEM_B:[/SYSTEM_B/dir]
Howto
|
|
|
|
12-09-2004, 10:27 AM
|
#3
|
|
LQ Newbie
Registered: Apr 2004
Location: Norfolk, Ne
Distribution: RedHat 7 and 9
Posts: 12
Original Poster
Rep:
|
I think this is going to do the trick but I am running into another problem. We use a non standard port for SSH. When I use /usr/bin/rsync -e ssh -pXXXX -avzp /path/* server:/path/ I get the messege that rsync: -pXXXX: unknown option. How can I tell rsync that it needs to use a port other then port 22 when it sync's up?
Thanks for any additional help.
George
|
|
|
|
12-09-2004, 10:31 AM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
well the rsync manpage says to use the --port option to set the rsyncd port, but i would assume this would be the ssh port if it's over ssh.
|
|
|
|
12-09-2004, 10:33 AM
|
#5
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
no, scratch that...
rsync -e 'ssh -p1234' ...
|
|
|
|
12-09-2004, 10:56 AM
|
#6
|
|
LQ Newbie
Registered: Apr 2004
Location: Norfolk, Ne
Distribution: RedHat 7 and 9
Posts: 12
Original Poster
Rep:
|
Thanks a lot. I got it to work. One day hopefully I will get to the point that I can start answering peoples questions :-).
|
|
|
|
12-10-2004, 10:07 AM
|
#7
|
|
LQ Newbie
Registered: Apr 2004
Location: Norfolk, Ne
Distribution: RedHat 7 and 9
Posts: 12
Original Poster
Rep:
|
O.k. it works when I run it manually and can type the password in, but how to I get it to use the password when running from a cron? Again-- security is not a high priority-- both systems are on the same subnet and behind a firewall.
Here is what I am using.
/usr/bin/rsync -e 'ssh -pXXXX -l nabu' -avzp /named/RBL/* XXX.XXX.XXX.XXX:/named/RBL/
Thanks again for all your help
George
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:19 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|