LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-26-2010, 08:49 PM   #1
ottadini
LQ Newbie
 
Registered: May 2010
Posts: 8

Rep: Reputation: 0
rsync across many machines


i have a cheap-arse employer who doesn't provide any data backup for us. so i've setup my own very simple server with ubuntu 10.04 (no raid).
from my linux desktop i want to backup to my file server.
from my file server i configured samba to allow me to access my data from the many Windows PCs in the place.
I also have a USB drive for when i go home or to another building.

most of my work happens on my linux desktop. so i use rsync to 'backup' from there to the file server.
can i use rsync to keep my usb drive also sync'ed? in the same command?

when i access files on my file server from a Windows PC via samba, and change something, will rsync pick up that change on the server, and migrate the changes back to my linux desktop?

ben.
 
Old 05-27-2010, 01:26 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello and Welcome to LinuxQuestions,

I don't know if rsync does that level of synchronization (automatically synchronize on changes). Have a look at Unison, I use it in a production environment between multiple servers to synchronize configuration files and documents. Works like a charm and is pretty easy to set up.

Kind regards,

Eric
 
Old 05-27-2010, 01:17 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,988
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
And while unison is a better choice for this than rsync I
think you need to redevelop your strategy; you're a) causing
double the network traffic with your pull/push via workstation,
and b) you're making a workstation a single point of failure.

Having a service account on the server and pulling the data
from the server directly makes much more sense.


Cheers,
Tink
 
Old 06-01-2010, 08:49 PM   #4
ottadini
LQ Newbie
 
Registered: May 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
And while unison is a better choice for this than rsync I
think you need to redevelop your strategy; you're a) causing
double the network traffic with your pull/push via workstation,
and b) you're making a workstation a single point of failure.

Having a service account on the server and pulling the data
from the server directly makes much more sense.


Cheers,
Tink
I don't really trust the server hardware: it's just an old workstation PC with no redundancy (i.e. one HDD, no RAID). I figured that having my linux desktop synchronised with that server would at least provide some redundancy.

I'm not really sure what you're suggesting otherwise. Do you mean, just have the server work as the main storage? I'd still need to back it up somewhere (and that's why I have it synching back to my linux workstation).

Ben.
 
Old 06-09-2010, 06:29 PM   #5
ottadini
LQ Newbie
 
Registered: May 2010
Posts: 8

Original Poster
Rep: Reputation: 0
I went with Unison if anyone's interested.

Still don't understand Tinkster's post.
 
  


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
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 04:08 AM
LXer: Synchronizing any two machines is easy when you use rsync LXer Syndicated Linux News 0 04-16-2009 03:50 AM
How to rsync to clone two machines linuxbee1 Linux - Newbie 3 03-21-2008 11:59 AM
consecutive rsync between three machines horacioemilio Linux - Newbie 2 01-05-2008 08:08 PM
Rsync between multiple machines Maeltor Linux - General 7 07-31-2006 11:22 PM


All times are GMT -5. The time now is 07:09 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