Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-23-2006, 07:17 AM   #1
Registered: Oct 2005
Distribution: Debian@work / Ubuntu@home
Posts: 42

Rep: Reputation: 15
Question Synchronisation: Rsync or not?

Hello again,

I was wondering how to synchronise two folders, each of them being on distant machines.

Let say two folders a and b on two computers A and B.
I want that when a user add sumthin' in folder a, this thing is added in b. vice versa
When user delete sumthin' in folder a, this thing is deleted in folder b. vice versa

Some kind of mirroring effect.

T tried to use RSync+ssh with a Script+CronJob

I used Rsync via ssh between two computers but the one where I put the Script lauching the scheduled cron job just "copy" what's in the other. It's like If I was doing a SCP command but I want a "synchronisation", sumthin' working in both ways making both folders identicals.

If u guys got an idea, bless u in advance!
Old 01-23-2006, 07:48 AM   #2
Registered: Sep 2003
Location: Bergen, Norway
Distribution: Debian testing
Posts: 69

Rep: Reputation: 16
I just started looking into the same problem so I hope you get some good answer! So far I've only found an article about unison which looks promising, but I haven't had the time to check it out in detail. I'm not allowed to post links yet, but if you go to linuxjournal com and search for unison synchronization the article is the first hit.
Old 01-23-2006, 08:48 AM   #3
Registered: Oct 2005
Distribution: Debian@work / Ubuntu@home
Posts: 42

Original Poster
Rep: Reputation: 15

This is exactly what I was looking for, this forum is ODH!!!

...compared to one-way mirroring options such as rsync...Think of Unison as two-way rsync with a bit of revision control mixed in. The most common use is keeping your local and remote home directory, or some data directory you often use in different contexts, in sync. It uses the rsync algorithm to keep network traffic down and should be tunneled through SSH over untrusted networks. No extra work is needed-simply specify ssh:// when adding a directory location. Quite a bit of extra disk space often is needed for Unison, though, because the synchronizer needs to keep track of what the files looked like on the last run.
Thx a lot Galle, I'll try this ASAP back home.


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
Local synchronisation ugenn Programming 7 09-14-2005 06:38 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 03:49 PM
Palm Synchronisation mdbarton Linux - Laptop and Netbook 8 12-09-2003 09:05 AM
Database Synchronisation saravanan1979 Programming 2 02-15-2002 11:11 PM
Data synchronisation saravanan1979 Programming 0 02-08-2002 04:35 AM

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

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