LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-18-2007, 11:57 AM   #1
Koppie
Member
 
Registered: May 2006
Location: San Francisco, CA
Distribution: Kubuntu Feisty Fawn
Posts: 41

Rep: Reputation: 15
Two-way syncronize on fat32 directories over network


I have a desktop and a laptop. I dual-boot both with windows and linux (although I'm about 99% linux at this point). I keep my personal files on a fat32 partition so it can be read and written by either linux or windows. I keep a copy of all my personal files on the laptop and the desktop and I like to synchronize them.

With windows this was pretty easy after Microsoft came out with their Sync Power Toy. I know solutions exist for linux but I've been unable to get any of them to work.

I tried Unison but it had problems with the permissions on my files. I suspect this has something to do with using fat32 but I'm not sure. I tried running it with sudo but that didn't help. Also, I have like 35 gigs of files to go through and Unison takes a long time. Rsync is much faster at the same task. (I'm not talking about actually copying all 35 gigs, I just have to look through the directories to see what DOES need to be synchronized.)

I've tried rsync but there are two problems: (1) it's too difficult to set up, and (2) it only does one-way synchronization. Here's how I've tried to solve these problems:

(1) I've created a script file to synchronize three different directories. For each one, it does a dry run and reports the results, then waits for my approval, and then does the actual sync. The problem is I'm not much of a scripter and it's already getting difficult.

(2) I could have my script synchronize everything one way, then synchronize it the other way. The problem with this is if I move or delete a file and then do a double sync, the file will reappear. Sometimes the latest version will be on the laptop, and sometimes the latest version will be on the desktop. I need to be able to sync both ways at the same time.

Any ideas? Thanks in advance!
 
Old 01-18-2007, 12:11 PM   #2
lucktsm
Member
 
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Rep: Reputation: 30
Mount the drive using cifs.

Then on the Linux side use cp -ru to sync the one way....
Then do it the other way...
 
Old 01-19-2007, 01:11 PM   #3
Koppie
Member
 
Registered: May 2006
Location: San Francisco, CA
Distribution: Kubuntu Feisty Fawn
Posts: 41

Original Poster
Rep: Reputation: 15
Actually I think my solution will be to use Unison.

Turns out Unison has problems reading fat32 partitions. But I can switch my partition to NTFS or ext3 (Linux support for NTFS has gotten better, and there is limited Windows support for ext3 now). Also, Unison only runs slowly the first time, in order to build the database, then it speeds up. Finally, I think using the CLI (command-line interface) was making Unison run slower; it seems to run faster when I use the GUI.

A big part of my concern is true synchronization. Rsync and cp simply mirror the directories. If I move or delete a file, I want that change to be reflected too. Looks like Unison is the only solution for that, and it should work fine if I change the partition format.

Thanks anyway for your help, I never would have thought of cp -ru on my own!
 
  


Reply



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
How I Made My Home Directory Syncronize Accross A Network, Is there A Better Way? rmurdough Linux - Networking 1 12-28-2006 02:26 PM
Can syncronize PDA to Linux? Vegetarian Smoker Linux - Software 2 06-29-2006 04:20 AM
Perl/Linux: Syncronize tree structure on network kenneho Programming 1 11-04-2005 04:42 AM
Syncronize Clocks newuser455 Linux - Newbie 2 07-15-2005 08:23 PM
Syncronize directories between server and laptop Yalla-One Linux - Software 1 03-29-2005 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:41 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration