
13th April 2010, 03:18
|
|
Senior Member
|
|
Join Date: Feb 2008
Location: Nashville, TN
Posts: 243
Thanks: 34
Thanked 5 Times in 4 Posts
|
|
rsync how to
If I want to mirror my ubuntu 9.10 32bit with ispconfig2 using rsync, will my mirror server need to have ispconfig 2 installed as well?
happz
|

14th April 2010, 22:53
|
|
Member
|
|
Join Date: Feb 2007
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
yup
If you are to rsync to a second server, it is better to have the OS`s the same
as well as the ispconfig.
On the 2nd server, you can run this command ( all on one line )
I use ssh on port 2222
rsync -ave 'ssh -p 2222' root@192.168.1.1:/var/www/html /var/www/html
This will rsync from your main server at 192.168.1.1, using root as the user, and rsync from the /var/www/html, to your second server /var/www/html
Change the folders to meet your needs.
madmac
|

15th April 2010, 16:16
|
|
Senior Member
|
|
Join Date: Feb 2008
Location: Nashville, TN
Posts: 243
Thanks: 34
Thanked 5 Times in 4 Posts
|
|
Thanks. Now if the servers are not in the same network..
If they are not in the same network then I could just put in the public IP i assume? Also, I if I wanted all sites backed up then the path would be /var/www/ correct? and last, do I not need an account with permissions?
thanks again,
happz
|

16th April 2010, 04:46
|
|
Senior Member
|
|
Join Date: Feb 2008
Location: Nashville, TN
Posts: 243
Thanks: 34
Thanked 5 Times in 4 Posts
|
|
Hello again. I follow this
http://howtoforge.com/mirroring_with_rsync_p2
Problem is that my users does get prompted for a password so I am not sure what went wrong. I followed this information directly. I don't want to setup the cron job if it doesn't work so can anyone help me understand why my /home/someuser is getting prompted? I did add the proper code where the info told me to put it.....
I guess I can manually run rsync but if anyone knows how i can id the problem it would be great.
happz
|

16th April 2010, 14:51
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Are you still prompted for a password if you remove
Code:
command="/home/someuser/rsync/checkrsync",from="mirror.example.com",no-port-forwarding,no-X11-forwarding,no-pty
from /home/someuser/.ssh/authorized_keys?
|

16th April 2010, 18:51
|
|
Senior Member
|
|
Join Date: Feb 2008
Location: Nashville, TN
Posts: 243
Thanks: 34
Thanked 5 Times in 4 Posts
|
|
Thanks...I am no longer prompted for a password
Thanks Falko! Have a great weekend.
|

17th April 2010, 18:32
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
This means that you used the wrong hostname in the
Code:
from="mirror.example.com"
part. Use the hostname that
shows.
|

17th April 2010, 21:41
|
|
Senior Member
|
|
Join Date: Feb 2008
Location: Nashville, TN
Posts: 243
Thanks: 34
Thanked 5 Times in 4 Posts
|
|
Uhhmm
I am running rsync in a little different way maybe. I have one server across town on a static IP and one @ home with a static IP. I am for sure entering the correct mirror.example.com so that is strange. Because I had removed the line before and thought that we were finish I have now added it back making very sure to put the mirror.example.com server name in the line but it goes back to asking for a password.
Can i just leave that line out? It is working. I can upload a file via FTP on srv1 and 5 minutes later, it appears on srv2.
Let me know please...thanks!
happz
|

18th April 2010, 18:47
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Quote:
Originally Posted by happz
Can i just leave that line out?
|
Yes, you can leave it out. It's just for additional security, that's all.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
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 +2. The time now is 01:06.
|
Recent comments
1 day 16 hours ago
2 days 49 min ago
2 days 3 hours ago
2 days 4 hours ago
2 days 6 hours ago
2 days 8 hours ago
2 days 9 hours ago
2 days 10 hours ago
3 days 2 hours ago
3 days 3 hours ago