LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rsync across many machines (http://www.linuxquestions.org/questions/linux-newbie-8/rsync-across-many-machines-810335/)

ottadini 05-26-2010 08:49 PM

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.

EricTRA 05-27-2010 01:26 AM

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

Tinkster 05-27-2010 01:17 PM

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

ottadini 06-01-2010 08:49 PM

Quote:

Originally Posted by Tinkster (Post 3983219)
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.

ottadini 06-09-2010 06:29 PM

I went with Unison if anyone's interested.

Still don't understand Tinkster's post.


All times are GMT -5. The time now is 12:57 PM.