LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-05-2007, 01:09 PM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Ubuntu Server LTS 14.04.1
Posts: 457

Rep: Reputation: 34
Question Rsync from Server


Hello Linux Geeks, ( I say that with the utmost admiration )

I have a file/svn server at the office that I would like to auto back up every night at 2:00am. From the research I have done, rsync is the way to go. However the examples and tutorials I have read have left me with some unanswered questions so I am turning to this community for answers once more.

What I am confused about:

Do I make our office server the rsync --daemon?
On the client do I need to specify the remote directory I want to rysnc? If so why do I set that in the rsyncd.conf?
Where in the command path do I put in the local directory I want the rsync'd files to go into? (ie rsync --d '/home/backupofficefiles' rsyncserver.com?)
Do I need to use SSH if I'm already connected via VPN?

If those questions could be answered that would be great! Thanks guys.
 
Old 09-05-2007, 01:40 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,650

Rep: Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525
No, you don't have to have an rsync daemon going.

On the client you are running rsync from, you do need to specify the local and remote directories.. for example:
Code:
rsync -av backup@remote:/etc/ /home/backups/remote/
rsync goes over ssh, so yes.

just to check, have you read man rsync ?
 
Old 09-05-2007, 02:08 PM   #3
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Ubuntu Server LTS 14.04.1
Posts: 457

Original Poster
Rep: Reputation: 34
I skimmed through the rsync man page. I admit, after what you posted it made more sense. I am confused why there is even an rsync daemon now... Doesn't seem like it's even needed. Do both sides of the connection require rsync?
 
Old 09-05-2007, 03:51 PM   #4
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Ubuntu Server LTS 14.04.1
Posts: 457

Original Poster
Rep: Reputation: 34
I got it working. I was confused because I thought a rsync server was needed. But I see now that rsync is a lot like SCP with a few more bells and whistles which help keep things in sync. Instead of just merely copying files over and over writing thing, it also will delete local files to make it match the remote machine.
 
  


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
rsync using proxy server bigsmile Linux - Networking 2 11-07-2006 04:38 AM
rsync & server load bigtl Linux - General 2 11-06-2006 04:09 PM
Rsync server vs rsync over ssh humbletech99 Linux - Networking 1 10-18-2006 01:10 PM
Server mirroring ? rsync Bluesuperman Linux - Networking 3 04-25-2006 11:12 PM
Server duplication with Rsync... capstone737 LinuxQuestions.org Member Success Stories 0 03-15-2003 10:59 PM


All times are GMT -5. The time now is 11:28 PM.

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