LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices

Reply
 
Search this Thread
Old 12-18-2003, 10:41 AM   #1
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Post DISCUSSION: Using rsync to mirror data between servers


This thread is to discuss the article titled: Using rsync to mirror data between servers
 
Old 04-01-2004, 08:50 AM   #2
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 512

Rep: Reputation: 35
Talking thanks

I just wanted to say thank you for this great HOWTO.

I got to rsync from zero knowhow and now my productive server is backuped to my other server like a star.

Good job!
 
Old 04-21-2004, 11:55 PM   #3
Rugemalira
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
rsync in crontab

Dear frinds,

I use rsync to back up a live server to another server. I use this command
rsync -e ssh -avz --delete-after user@liveserver:/home/httpd /home

then I am prompted to enter a password. Now when I enter the same command in the crontab nothing happens. I think the problem is may requre a password to connect.

Now How do I enter the password in to the crontab so that this process is automated? The command in the crontab I us is; 0 * * * * rsync -e ssh -avz user@liveserver:/home/httpd /home 2>&1 > /var/log/hourly_backup.log

Crispin.
 
Old 04-22-2004, 08:49 AM   #4
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 512

Rep: Reputation: 35
Oh yes, that is an issue. Usually you need to enter a password and cron of course, cannot do that.
Some crazy idea would be to put the password into a file and read it from there, but this is a terrible way to work.

Instead, you can create a passwordless loging for the machine that makes the backup to the other. Look up the HOWTO about ssh, it is described there, worked for me like a charm.

In essence you generate a key on the backup machine and then include that key into the "trusted keys" file in the other machine, so it lets it login without a password.
 
Old 07-20-2004, 12:02 PM   #5
atomicx
Member
 
Registered: Oct 2003
Posts: 48

Rep: Reputation: 15
This is a great topic/article. I was wondering if there was at good way using rsync to keep 2 computers synced up if files are being updated on either machine.
 
Old 10-20-2004, 06:56 AM   #6
Rugemalira
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
browny_amiga, it worked, thanks.

Atomicx, it is posible, just generate the private in the server(see the howto, man pages), then copy it to the backup sever, even if you have more than one backup severs, just copy the same key to all severs.

cris
 
Old 10-29-2006, 04:17 PM   #7
linuxlogo
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
rsync

you need to exchange the SSH public key b/w the servers so that you need not to provide any password. There is a link above which shows how to do that. Cheers.
 
Old 09-12-2007, 11:31 AM   #8
billymac00
LQ Newbie
 
Registered: Sep 2006
Location: California Bay Area
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
restore direction question

(newbie). I just used the rsync successfully to an external NDAS. My question is whether I am foolish to think this is a truly useful backup, and if it is, does one just rsync the files back? I speak to the case of having backed up a particular folder (non OS application files) off the server, and then later needing that older/intact version off the NDAS to recreate/fix same on server. Thanks.
 
Old 03-29-2012, 01:37 AM   #9
yashvanth
LQ Newbie
 
Registered: Mar 2012
Posts: 23

Rep: Reputation: Disabled
Angry rsync server setup

hi can anyone tell me the complete procedure how to setup the rsync server . i am very new to linux and somehow managed to write some script to take backup locally using rsync.
now i need to take the backup remotely.please help me to do this one
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use a codafs to mirror /home and /home2 across 2 servers? abefroman Linux - Software 1 09-15-2005 07:25 PM
Rsync to mirror data for backup - having difficulties tapanga Linux - Newbie 1 05-17-2004 05:45 PM
www mirror: is dnotify / rsync my best bet? GuitsBoy Linux - Software 2 01-27-2004 07:34 PM
Mirror Servers biggdady6998 Linux - General 3 09-27-2003 07:12 AM
Mirroring servers using RSYNC RKris Linux - Networking 1 05-15-2003 06:26 AM


All times are GMT -5. The time now is 02:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration