Slashdot Mirror


Laptop/Server Data Synchronization?

gbr writes "I've been trying to automatically synchronize data between a laptop and a server. When the laptop is connected to the network, I want all writes to automatically propagate across to the server. When the laptop is disconnected I want the laptop user to continue working with the local data. When the laptop is reconnected, I want the data to automatically re-sync. The issue is, the data on the server may have changed as well, which needs to propagate back to the laptop. The data doesn't contain anything too special, no database tables etc. It does contain binary data such as executables and word processing documents. I've looked at ChironFS, Unison file sync, and drbd. ChironFS needs a manual rebuild if a connection fails, and the user needs to know which machine contains the correct data. Unison requires the user to initiate the synchronization process manually every time, and drbd is just not meant for the job at hand. How do you automatically, and invisibly to the user (except in the case of conflicts), synchronize between a laptop and a server?"

305 comments

  1. rsync by jshriverWVU · · Score: 5, Informative

    I do this often and rsync is wonderful for such a task.

    1. Re:rsync by pixel.jonah · · Score: 4, Informative

      I'd second rsync.

      I'd also take a look at Microsoft's SyncToy if you're on win***s.

    2. Re:rsync by rebullandvodka · · Score: 2, Informative

      I agree, subversion & scripts sounds like a good solution. Dare I suggest... Lotus Notes/Domino? Seriously, the notes databases can be setup to do what you're looking for. It worked pretty good at my last job as long as everyone played nice.

    3. Re:rsync by eos_buddy · · Score: 2, Informative

      If the laptop and the server you use is Linux/Unix, rsync is definitely the answer to it - its robust and after the 1st time of rsyncing, the process should be quick enough (assuming you log-on often). I wrote a small script recently to sync my firefox bookmarks. Don't know whether it might be helpful to you, but here is the link: http://oidw.blogspot.com/2007/08/geek-talk.html

    4. Re:rsync by Roarkk · · Score: 5, Informative
      rsync is part of the answer. If you're looking for a way to have multiple, incremental backups of laptops with unpredicatable patterns of connecting to the network, BackupPC is the way to go.

      BackupPC is a high-performance, enterprise-grade system for backing up Linux and WinXX PCs and laptops to a server's disk. BackupPC is highly configurable and easy to install and maintain. Given the ever decreasing cost of disks and raid systems, it is now practical and cost effective to backup a large number of machines onto a server's local disk or network storage. This is what BackupPC does. For some sites, this might be the complete backup solution. For other sites, additional permanent archives could be created by periodically backing up the server to tape. A variety of Open Source systems are available for doing backup to tape. BackupPC is written in Perl and extracts backup data via SMB using Samba, tar over ssh/rsh/nfs, or rsync. It is robust, reliable, well documented and freely available as Open Source on SourceForge.
      By using pooling and compression, one client of mine is using BackupPC to backup over 1TB of data distributed among over 100 laptops to a 200GB filesystem on a central server. The network is polled every hour, and any system that hasn't been backed up in the last 24 hours is queued. Beautiful system.
    5. Re:rsync by BrookHarty · · Score: 1

      Says for Vista, but requirements says XP or vista. Pushing hard they are.

    6. Re:rsync by Anonymous Coward · · Score: 3, Funny

      I keep trying to install the n'sync CD but it just asks me whether I want to play the music or not.

    7. Re:rsync by omeomi · · Score: 1

      Or, if you're on Windows, just install Cygwin.

    8. Re:rsync by frenetic3 · · Score: 5, Informative

      Take a look at Dropbox (http://getdropbox.com/; screencast at http://getdropbox.com/u/2/screencast.html) if you want something that's rsync-like but integrated into Windows and OS X. It's in beta (and full disclosure: I co-founded the company) but was designed precisely because there's nothing out there that does this well and is easy to use.

      --
      "Where are we going, and why am I in this handbasket?"
    9. Re:rsync by coaxial · · Score: 1

      rsync is unidirectional, while unison is bidirectional. While great, rsync isn't always the right solution.

    10. Re:rsync by dbIII · · Score: 1

      It looks good but will fall prey to the utterly stupid windows file locking problems that even NTbackup occasionally falls foul of. In other words - good for most things but if email is stored locally instead of elsewhere it is almost a certainty that you will never back it up. If the user keeps their email client open all the time as you would expect then the file is locked. One of the files that is very important to the user, the registry, is not going to be backed up. for this reason you really need something that knows how to use the volume shadow copy hack that works around this flaw. The information on how to use this hack is not publicly available.

    11. Re:rsync by syphax · · Score: 3, Informative


      Unison is 2-way rsync. But as the poster noted, unison/rsync doesn't easily support automatic synching (that I know of)- you have to kick it off and then deal with any conflicts, etc., manually. I think the poster is looking for ideas of at least automating Unison/rsync (BTW does rsync support 2-way updating, as the poster explicitly mentions?).

      As someone who relies on running unison manually (too lazy to figure out how to automate on my Windows box), I'd be interested in relevant solutions.

      --
      Simple Unexpected Concrete Credible Emotional Stories
    12. Re:rsync by cduffy · · Score: 4, Insightful

      subversion is intended for a case where you have a single data store. A modern distributed SCM -- designed for disconnected use -- would make more sense.

      Personally, I play with bzr most frequently; it has a nifty Python interface (and an extensive plugin architecture) which makes it quite conducive to local scriptage. (As an example -- I have a local, filesystem-backed set of CA scripts which use bzr for transactional semantics; if a method is called which throws an exception, all filesystem changes are automatically rolled back; if a method succeeds, a commit is done to record the operation and [effectively] set a rollback point). The separation between working tree and repository is optional (by default, all working trees are also repositories -- much like BitKeeper in that respect), which makes it very handy for situations like this where you don't necessarily *have* a separate, central location which all nodes can always communicate with, and where the different trees are allowed and expected to temporarily diverge.

    13. Re:rsync by EvanED · · Score: 2, Informative

      The information on how to use this hack is not publicly available.

      Um... what?

      You mean besides this diagram of the steps you should follow when making a backup (and a similar one for restore), and the MSDN documentation for the VSS.

    14. Re:rsync by arivanov · · Score: 2, Interesting

      There is no point implementing laptop backups before implementing a no-quota IMAP mail server. Exchange in its native mode does not count due to a number of corruption bugs which hit you once your inbox exceeds 2G (it should be OK as an IMAP server, bugs are mostly in Outlook).
      As far as the user is concerned his primary concern for laptop data loss is email. So you have to back it up as a part of any backup solution. If you are storing email locally on the laptop and backing it up the backup will nearly always be corrupt due to file locking. Further to this, the financial, network and storage resource required to implement a laptop backup solution exceeds by far the cost of extra storage on the mail server. In addition to that if the email is stored centrally the backup size per laptop decreases straight away to become on the order of MBs instead of GBs for most users.

      --
      Baker's Law: Misery no longer loves company. Nowadays it insists on it
      http://www.sigsegv.cx/
    15. Re:rsync by loraksus · · Score: 1

      Nice... It also works on 2003 server.

      --
      1q2w3e4r5t6y7u8i9o0pqawsedrftgthyjukilo;p'azsxdcfv gbhnjmk,l.;/
    16. Re:rsync by Askmum · · Score: 1

      I've used Synctoy and it painfully lacks one option. I don't remember which at this point, but I believe it is impossible to select specific files to sync both ways. It essentially is a program that uses one master and one slave device, and the slave has less options than the master. You can not sync two equal (in functionality) devices.

    17. Re:rsync by Anonymous Coward · · Score: 0

      What he said. Rsync is teh lick!!1!

    18. Re:rsync by oatworm · · Score: 1

      If you're using Outlook 2003 or newer, the limitation has been increased to 20 GB. You can find more information here.

    19. Re:rsync by dbIII · · Score: 1

      Looks like I was wrong. Does anyone know of an open source application that uses this? Cross platform solutions like bacula and amanda don't as yet.

    20. Re:rsync by Anonymous Coward · · Score: 1, Interesting

      I am using Subversion. I keep the whole $HOME and app configs in it. For both Windows and Linux (altogether for 5 different hosts). Sharing even config of Firefox, Skype, localtexmf dir, etc between the two. Well, it's not precisely what you want (automagic switching between the two data storages), but most probably it is the cheapest solution for this anyway. Otherwise you might end up with a nasty inconsistent udpates from server thus loosing your temporary work (there is always a small piece which you have to merge manually if you have a multi-user environment!).

    21. Re:rsync by frenetic3 · · Score: 5, Interesting

      Apologies if it's in bad taste to reply to my own post, especially because it's about the product I'm working on, but here are some of Dropbox's differences/improvements over what people typically hack together themselves:

      - syncs continuously/watches the FS for file changes (no cron jobs needed -- things usually sync as quickly as they can be sent)
      - does binary diffing and only sends deltas (compressed & over SSL)
      - transparently archives past versions of all files (i.e. undelete/infinite undo)
      - syncs across any number of machines
      - lets you get to your files from the web
      - some more info @ http://venturebeat.com/2007/08/16/the-y-combinator -list/

      We made it after hacking together our own rsync-based abominations and getting really annoyed that no one had solved this genre of problems in a way that normal people could use.

      Okay, I can stop shilling now. I was just excited that other people run into these problems.

      --
      "Where are we going, and why am I in this handbasket?"
    22. Re:rsync by JayAEU · · Score: 1

      That's right, but at least for eMail stuck in an Outlook .pst file, you can install pfbackup.exe, which regularily copies the real thing into a backup copy. This offline copy can then easily be backed up by BackupPC.

      The same goes for many other files that have running services locking them. Just pop in a pre- and post-backup script in BackupPC that handles stopping and starting said services or have the services (i. e. RDBMS) do a nightly dump to a file.

      The beauty of BackupPC is that it will even only transmit the differences in those dumps when using rSync as a transport mechanism.

    23. Re:rsync by eknagy · · Score: 1

      A more user friendly way is to install something like nekjs.
      If you need a new feature, just use the SourceForge service marketplace to find somebody to code it.

      Disclaimer: I am involved and not innocent.

      Elmar

    24. Re:rsync by Barsteward · · Score: 1

      Is unison still supported in any way? According to its website, it seems a little confusing. I'm not sure when this quote was written. "Unison is no longer under active development as a research project. (Our research efforts are now focused on a follow-on project called Harmony, described at http://www.cis.upenn.edu/~bcpierce/harmony.) At this point, there is no one whose job it is to maintain Unison, fix bugs, or answer questions. However, the original developers are all still using Unison daily. It will continue to be maintained and supported for the foreseeable future, and we will occasionally release new versions with bug fixes, small improvements, and contributed patches."

      --
      "The hands that help are better far than lips that pray." - Robert Ingersoll (1833-1899)
    25. Re:rsync by sunny009 · · Score: 1

      I've been looking into how to get my laptop to sync with my server much as it does with a windows domain logon. I've almost got it working with pam plugin that launches a script upon login and logout for each user. That script pulls in the server changes via rsync upon login and on logout sends the changes made locally back to the server. Not quite working yet, but its getting their. Main problem is that the login times out before all the changes can be copied if their are a lot of changes.

    26. Re:rsync by arivanov · · Score: 1

      I have had to migrate users off Outlook 2003 to Mozilla due to mailbox corruption so unfortunately MSFT has not fixed all bugs. No idea about 2007. In most cases, based on my extremely unscientific observations a user which has a 2G+ mailbox does not want Outlook anyway.

      --
      Baker's Law: Misery no longer loves company. Nowadays it insists on it
      http://www.sigsegv.cx/
    27. Re:rsync by Jimithing+DMB · · Score: 2, Interesting

      This looks quite similar to Novell's iFolder but with you running the server yourselves instead of having your users set up an iFolder server. Last I used iFolder was in the 1.x or 2.x days and it frankly wasn't anywhere near the polished product you have here. Now it seems that iFolder 3.x is open source and looks a lot more polished.

      Still, I think you surely have a great service market here even though the polished front-end app seems to now be done open source. Best of luck to you on your new venture!

    28. Re:rsync by dusty123 · · Score: 3, Informative

      I don't see how rsync solves this problem:

      AFAIK, rsync is only one-way, meaning that it overwrites and eventually deletes files. Have a try:

      mkdir d1 d2 # Create two directories (e.g. one on server, one on laptop)
      touch d1/foo.txt # Create an empty file
      rsync -r d1/ d2/ # Sync the directories
      echo "123" > d2/foo.txt # Now modify the file on d2 (e.g. laptop)
      rsync -r d1/ d2/ # Sync again
      cat d2/foo.txt # Ooops - foo.txt is empty!

      One possible way I experimented with is the following:

      - Integrate a rsync server -> laptop in the startup procedure of the laptop
      - Never modify a file on the server while working with the laptop
      - Integrate a rsync laptop -> server in the shutdown procedure of the laptop

      In theory this works, but practically there are cases where you miss the shutdown/startup sync, e.g. when you have no network at startup (e.g. you took your laptop away from home and forgot to sync it), in case you laptop crashes, the network fails during shutdown and numerous other problems. These lead to dangerous situations, e.g. if the rsync laptop->server fails during shutdown, a startup-rsync may overwrite modified files.

      After loosing some of my work, I decided to switch to unison, which is a 2-way sync and lets me decide how to resolve syncing problems.

      Nevertheless I'm not entirely happy with the situation - if I forget to sync, I have to resolve things manually, moreover the sync takes quite some time.

      In my special case, I have a WLAN connection to my server most of the time, so changes could be written immediately. So I'd favour some kind of network file system that has offline capabilities and can handle two-side modifications in some way. I thought about Coda but it seems to be far too complicated and unreliable and I don't know better alternatives.

      So I'm still stuck to my Unison solution, which is somehow cumbersome, but works...

    29. Re:rsync by coaxial · · Score: 1

      I think it pretty much reached maturity and so development stopped. Afterall, there's only so much you can do with a file syncher.

    30. Re:rsync by Anonymous Coward · · Score: 0

      Perhaps you can use Unison and program its execution in some script associated with the connection to the network (I don't know which OS you are using)

    31. Re:rsync by macbutch · · Score: 1

      Looks fantastic - I've been looking for something like this for years. Seriously! I've applied for the beta and am very excited to try it when it is available.

      It looks like it supports Mac and Windows - this will make you very popular, I think. (Especially as foldershare doesn't really support Intel Macs in any meaningful way and this seems better anyway).

      Good luck!

    32. Re:rsync by Znork · · Score: 2, Informative

      "AFAIK, rsync is only one-way, meaning that it overwrites and eventually deletes files."

      rsync has a whole bunch of options that will let you decide behaviour. --update will make it skip files that have newer modify times or you could use --backup to make it make a copy of files instead of overwriting them, etc. Mix and match and run two-way syncs after eachother and you could get close in behaviour to a real two-way sync.

      "I thought about Coda but it seems to be far too complicated and unreliable and I don't know better alternatives."

      I've played around with Coda, and from what I recall there are two things that make it impractial for 'ordinary' use. The lack of file locking (which causes problems with annoying apps that use it) and the handling of large files (it had to copy the entire file to local cache before unblocking the io calls, ie, dont look at any video files on coda). And so, my original idea of having home directories supporting disconnected operations were shot. It would have worked very well for specific subsets of datastorage, but in the end it was simpler to just sort the data into various structures and deal with syncing on a case by case basis (rsync for some things, plain nfs/autofs for other things, cvs for code or text, etc).

      In the end, I think this is one of those problems where it's better to just sit on your arse and wait because the problem of permanent connectivity will be solved before someone figures out how to make a wholly transparent redundant filesystem that seamlessly supports disconnected operation. The whole problem is simply to a certain extent incompatible with the way filesystems usually work.

    33. Re:rsync by funfail · · Score: 1

      Replication is great but you manually have to attach the files to documents.

    34. Re:rsync by killjoe · · Score: 1

      I still can't believe nobody mentions powerfolder yet. http://www.powerfolder.com/ It's open source but they try and sell you a "pro" version. Not quite sure how that works really.

      --
      evil is as evil does
    35. Re:rsync by deimtee · · Score: 3, Funny

      That's strange, n'sync CDs don't have any music on them.

      --
      I'm guessing that wasn't on their radar screen...
    36. Re:rsync by Professor_UNIX · · Score: 1

      Afterall, there's only so much you can do with a file syncher.
      Does it play music, edit files, or browse the web? If not I think there's a lot more functionality that can be added on before I'd ship it as feature complete.
    37. Re:rsync by Angostura · · Score: 1

      Looks nice, and I've filled in the beta request box. The immediate question it raises though, is can this be used for small workgroups who want to work on a file and keep it synced - a la Groove, but which actually works.

      Yes, I know this probably isn't how you intended people to use the product, but I bet people will try to use it in that way.

    38. Re:rsync by SaDan · · Score: 1

      I've had great success backing up Windows servers by simply running a system state backup every day and storing it to the local server. At night you can use just about anything to back up the filesystem, and you will pull that system state file as well.

      I've done bare metal restores using this method, and have not had a failure yet. This includes two different active directory servers.

      Open files on a workstation or laptop might be a different issue, but I've not found a case where doing a tar through Cygwin plus the system state backup couldn't put a server back together again.

      I'm currently looking at Bacula + system state backups so I can do off-site backups using tape.

    39. Re:rsync by Anonymous Coward · · Score: 0

      Try iFolder. www.ifolder.com

    40. Re:rsync by gbr · · Score: 1

      rsync is really a one way sync. I need two way sync with a potential conflict resolution tool.

      Gerald

    41. Re:rsync by EvilRyry · · Score: 1

      bacula has shadow copy support. There is also a version of rsync that supports shadow copy as well (you could use this in conjunction with backuppc).

      Calling volume shadow copy a hack isn't quite fair. It really isn't too terrible, especially if you compare it to the horrid LVM snapshots in Linux. However I have found it to be quite unreliable on larger volumes (multiple TB), sometimes the snapshots just fail. Of course they don't just delete the snapshot that failed either, they end up deleting ALL the snapshots on the whole volume. I had a system set up for twice daily snapshots, but I was considering myself luck if I had more than 4 snapshots at a time.

    42. Re:rsync by Anonymous Coward · · Score: 0

      AFAIK bacula supports VSS:
      See http://www.bacula.org/dev-manual/Windows_Version_B acula.html:
      "In version 1.37.30 and greater, you can turn on Microsoft's Volume Shadow Copy Service (VSS)."

      (But I never tried it - I only remembered that I read about VSS support in bacula and then found the mentioned page with google)

    43. Re:rsync by Anonymous Coward · · Score: 0

      It does not do email yet; therefore, it is not complete.
          Any program will expand until it can read email. Once this is complete, it will be surpassed by the new hotness which doesn't do email and is quicker. Repeat as often as required.

    44. Re:rsync by nine-times · · Score: 1

      What if you're syncing with a server, and you start out with 10 files, all of them synced between the two. Two files get deleted from the server, one gets deleted from the laptop. You create three new files and change 2 of the files on the laptop, and change 3 files on the server. Now, you want to sync the two in such a way that all of these changes get propagated. You want to delete all the files that were deleted from either computer, move the new files to the server, copy the changed files to the server, but you want to be careful about conflicts. If the same file got changed on both machines, you want them excepted from the sync or else resolved in a controlled way.

      How do you do that with rsync? It doesn't seem to be designed to handle that well. I use rsync for one-way synchronization, but unison seems to be better suited for a two-way sync.

      Unless... am I wrong? Maybe there's some rsync tricks I just don't know.

    45. Re:rsync by pahles · · Score: 1

      mod parent up, please!

      --
      Sig?
    46. Re:rsync by nine-times · · Score: 1

      It does look cool, but can I ask what your business model is? (i.e. how will you be making money?) Is this going to be a pay service?

      To be perfectly honest, it looks pretty great, but I'm personally a bit tired of getting locked into a specific service. That's the only problem that I would have with it. I have my own servers, plenty of online storage, and I don't entirely like storing my data on another company's server, not really knowing the people running the company or security practices, etc.

      But the software looks like a good idea. Any chance you'd consider selling licenses when you're done so that people could use it on their own servers?

    47. Re:rsync by gatzke · · Score: 1


      Exactly. rsync worked for me. Simple upload or download scripts for my laptop to mirror everything each morning or afternoon. And you can do it with ssh / scp

      rsync even works pretty well from a PC with CYGWIN. Of course, permissions get screwed up and PCs have problems with oddball chars in file names, but it can work cross platform.

      I don't know how rsync works if both the server and laptop change. I try to avoid that, since it just seems like trouble.

    48. Re:rsync by Hatta · · Score: 1

      How would you use rsync to synchronize files when there have been changes on both the server and the laptop?

      --
      Give me Classic Slashdot or give me death!
    49. Re:rsync by Hatta · · Score: 1

      That's nice and all but does it have a command line tool?

      --
      Give me Classic Slashdot or give me death!
    50. Re:rsync by Anonymous Coward · · Score: 0

      Take a look at DBSentry's FileSync built using JXTA.

    51. Re:rsync by Mooga · · Score: 1

      powerfolder has a freeware version, but nothing on it's website says that it's open source.

      --
      ~ Mooga
    52. Re:rsync by mlcdigital · · Score: 1

      If you are using a *Nix workstation rsync would be the easiest. You could configure a cron job using Perl that can verify if the server is accessible then rsync the data.

      Mac OS X.4 Server/Client has the synchronization capabilities built into the systems. I've configured an entire school district to use this feature on laptops (over 100 of them). Very simple with Mac OS X.4 Server/Client.

      Windows XP can be configured through Group Policy on the local machine to sync to server if the Active Directory server is available on the network. Not as easy as Mac OS X.4 Server/Client but still possible.

    53. Re:rsync by tmasssey · · Score: 1

      Seconded. We use BackupPC for all of our server backups. Many of our clients run Domino, where file-locking is not an issue. For those clients running Exchange, we use NTBACKUP to back up the Exchange data store (and system state) and then BackupPC to back that up off-machine.

      Works for us. Have done whole-server restores (only a couple of times) with this. I've never bothered to try a bare-metal restore on Windows, so YMMV. Our clients are small enough that bare-metal doesn't buy that much.

    54. Re:rsync by neurovish · · Score: 1

      It might *look* polished...but the phrase "world of pain" comes to mind when I think about the installations that I've seen/dealt with.

    55. Re:rsync by Anonymous Coward · · Score: 0

      synctoy is a horrible, horrible POS

      half the time it cant sync and it leaves hundreds of temp files laying around

    56. Re:rsync by Deagol · · Score: 1

      I run Bacula on a small office server (FreeBSD) which backs up a half-dozen XP machines. The Win32 client supports the VSS snapshots just fine, and multi-GB Outlook PST files that are left open 24/7/365 are backed up without problems. So, it can be done.

    57. Re:rsync by JimDaGeek · · Score: 1
      This looks interesting, however the site doesn't give much information on DropBox. I am glad there is a Mac client, will there be a Linux client? I personally need both.
      1. Are the actual files stored on your servers? Or just change information?
      2. What about privacy issues? In the screencast you showed sending a link to the file and there was no protection on the file, it showed up in a browser
      3. How much space does a user get? I have 180 GB of stuff backed up, it would seem costly to have to pay someone else for that storage when I can buy one or two cheap hard drives and keep two copies of the data
      4. Will this tool work to allow one to sync without needing to send stuff to your servers? i.e. I just want to sink stuff from my 2 desktops to an external hard drive
      Thanks.
      --
      General, you are listening to a machine! Do the world a favor and don't act like one.
    58. Re:rsync by cmason · · Score: 1

      Wow, sounds cool, would love to try it, but... uh... can't... due to private beta...

      -c

      --
      "If you are an idealist it doesn't matter what you do or what goes on around you, because it isn't real anyway."-R.P.W.
    59. Re:rsync by msgtomatt · · Score: 1
      Don't waste your time with rsync. ViceVersa and Allway Sync are two applications that I have been using for the last two months for exactly this application. You can download trial versions form thier web sites. VicaVersa provides a little bit more detail on the data transfer rates but can only sync one "profile" at a time. Allway can sync multiple "profiles" but does not show give you the geeky bandwidth stats. Both applications can run in the background and sync on a schedule or when changes are made to the files system. Also both apps allow you to filter the files that get sync'd, so you don't end up sync temp files or system files; such as thumbs.db. Both applications allow you to control conflicts. Eg. when there are changes to both server side and laptop side.

      For my setup I am using a desktop as the server and a laptop as a runner. I have a direct hardwire connection between the two machines and a wireless connection to the internet. I can perform a sync of 15GB of files with ~500MB of changes between the files in ~3mins. (It take ~2.5 mins to scan the laptop for file changes, and ~30s to transfer the data. The 1Gbit connection is great!) I perform most of my work on the desktop, and simply unplug the laptop when I hit the road. When I return, I plug the laptop back in and the desktop will automatically sync things with in about 30 mins (which is simply dependant on how I setup my scheduler). If I am in a hurry to transfer the files I can manully initiate the sync, and 3mins later I have everything.

      The only improvement that I would like is to have the apps run in the background on both machines and keep track of the file changes in real time; so, that the app does not need to spend 2.5mins figuring out what needs to be transferred when it is time to sync. Let me know if you know of an app that can do this.

    60. Re:rsync by peskypescado · · Score: 1

      Actually, if you are on Windows or OS X try out a different Microsoft utility called FolderShare (http://www.foldershare.com). It is a program that will keep folders on 2 (or more) systems synchronized at all times. It call intelligently figure out if you are on the same network and transfer locally, but it will also sync over the internet if they are both connected. I have been using it for a couple of years now, and it is great; it just works.u

    61. Re:rsync by operagost · · Score: 1

      Exchange uses a Jet database, not PSTs. In fact, the only time a 2 GB "limit" arises is when you're setting quotas on the mailboxes in ESM. For some reason, the tool will only let you enter a quantity up to 2 GB. You must use ADSIedit.

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    62. Re:rsync by totmacher · · Score: 1

      I recommend PowerFolder for synchronizing your notebook with the servers.

      It is capable of bi-directional synchronization as described in your usecase.
      PowerFolder also automatically detects nodes on LAN or Internet and (re-) establishes the connection if possible.
      Since it does delta-synchronization like rsync it works very well with slightly changing files.

      You might want to give it a try:
      PowerFolder Webpage

      regards,
      tot

    63. Re:rsync by Miroe · · Score: 1

      hi i tried this ---> www.powerfolder.com seems to run over a peer to peer network without server with different
      sync profiles which give you choice to sync manually or leave it to
      the program to sync all 10 min. also for backup and they seem to have a
      online storage for free in beta phase(didnt tested that yet). their forum says
      that it detects changes automaticlly and copies the newest file on all machines
      which joined a folder. The setup is quite simple and it works with java on all systems.
      i think it looks nice but more opions could be good.

    64. Re:rsync by killjoe · · Score: 1

      Right on the front page it says...

      "Simplify your Digital Life today - Get PowerFolder!

      PowerFolder is a Secure, Open Source, Peer-to-Peer File Transfer Tool.
      Easily share, backup, synchronize and access files over the Internet or in LAN. "

      This is in red letters near the top of the page. How did you miss that?

      --
      evil is as evil does
    65. Re:rsync by dbIII · · Score: 1
      Well cwrsync and MS Server 2003 plus a download of Microsoft's Volume Shadow copy SDK can do it - there's a page at http://www.itefix.no/phpws/index.php?module=faq&FA Q_op=view&FAQ_id=81 about it.

      Hopefully a method for those XP laptops is out there somewhere (apart from the obvious like acronis, partimage or just plain dd that avoids the issue by not letting MS window run and lock the stuff - but you can't get anything else done at the same time). I will also persist in calling poorly documented workarounds hacks although there may be better words.

    66. Re:rsync by a.d.trick · · Score: 1

      How is that different from, say, subversion?

    67. Re:rsync by darkpixel2k · · Score: 1

      You lost me after "...you start out with 10 files".

      --
      There's no place like ::1 (I've completed my transition to IPv6)
    68. Re:rsync by in5ane · · Score: 1

      I use synctoy to sync photos around all my PCs (from a central Windows Home Server) and i think the option you are looking for is 'synchronize' which goes both ways when it has to (i.e. I load new photos on any client, and those will get pushed back, while I still get any new stuff from the server).

    69. Re:rsync by lbates_35476 · · Score: 1

      If something exists that meets ALL your needs, I've never seen it. Some of what you ask for is quite hard. We haven't found an exact solution but we have found one that meets "most" of your requirements. If you use Super Flexible File Synchronizer (SFFS) (http://www.superflexible.com/) and WebSafe (http://www.websafe.com/) you can accomplish the majority of what you want. SFFS provides a very flexible synchronization program that can be run manually or scheduled. WebSafe provides encrypted online storage for your files. File transfer is via https (SSL) with at-rest files encrypted using AES-256 encryption (in WebSafe). WebSafe provides both a browser and a WebDAV (Web Folder) interface for online file access. Binary diffs can be done for local synchronizations, but binary diffs would be extremely difficult to implement between a local binary file and a remote encrypted binary file. You sure don't want to have your files available on the Web in clear text (unencrypted). With the flexible scheduler available in SFFS and WebSafe's encrypted online storage, this meets our needs for syncrhonizations that exceed 45Gb of storage at our office.

      I should let you know that as one of the programmers on the WebSafe team, we designed it to meet just the type of needs that you outline.

    70. Re:rsync by phretor · · Score: 1

      Indeed!

      Personally, I've "prepared" my own rsync-based sync stuff which is both general enough to be used in virtually any case and extensible (for instance, you can use it in cooperation with FUSE-based filesystems).

      I've named it "HOWTO Backup your Mac" but it obviously applies to *any* *NIX system: http://www.maggi.cc/#downloads

  2. Subversion by hahafaha · · Score: 1, Informative

    How about Subversion? You'll have to write some small scripts that would make it autoconnect, etc., but it could work if you set up SSH keys, etc.

    1. Re:Subversion by Iron+Condor · · Score: 4, Interesting

      At the risk of saying something stupid or blasphemous: why offer something that requires "writing some scripts"?

      If the OP wanted to "write some scripts" s/h/it could have done all the neccessary work with a couple foreach...cp...end. Or, hey, rsync.

      I am suspecting the OP is wondering whether there isn't something out there that "just kinda works" and only needs intervvention in case of a conflict.

      Knowing well that this will definitely be considered blasphemy: I've been using Window's "briefcase" system since Win98. It does "kinda work". Most of the time. And requires work when there's a conflict. Which appears to be what the OP is looking for. Given that the OP doesn't seem to want to just go that route, the question appears pertinent what s/h/it is looking for that Mr. Gates briefcases can't/won't do...

      --
      We're all born with nothing.
      If you die in debt, you're ahead.
    2. Re:Subversion by hahafaha · · Score: 1

      No, you have a good point.

      What I meant by ``writing scripts'', though, was like a line in xinitrc that launches ``svn up'' on startup, and SSH keys if he doesn't have them already. If he wants, also a cron job every how-ever long to run ``svn up''

    3. Re:Subversion by aldheorte · · Score: 5, Funny

      "s/h/it"

      You may want to reevaluate your approach to political correctness.

    4. Re:Subversion by Anonymous Coward · · Score: 0

      Subversion would require twice the harddrive space on each working copy, and then once more for the data on the server.

      Now, I *do* believe there's a SVN fork out there that doesn't cache the originals in .svn, but I can't remember what it was called.
      If not, someone should write one.

      Just assume all operations that require the cache are being done over a super fast network connection, and use the interblags to get the pristine copies.

    5. Re:Subversion by Garridan · · Score: 1

      I think s/h/it has already. Perhaps you need to reevaluate your approach to understanding the cultures of others, who may or may not give a shit about political correctness.

    6. Re:Subversion by jhol13 · · Score: 1
      Good idea.


      Let's make it sane: use some distributed version control systems which do merging so much easier.

    7. Re:Subversion by ookabooka · · Score: 1

      [(s)he]/it I like that one, what do you think?

      --
      If you are about to mod me down, keep in mind that this post was most likely sarcastic.
    8. Re:Subversion by Anonymous Coward · · Score: 0

      I think it's s/h/it, sorry.

    9. Re:Subversion by cduffy · · Score: 1

      The one-master-many-slaves model isn't really as suitable for this as a multi-master model; who wants to be able to adjust their configuration files only when on their desktop system, and be unable to persist changes made while running off the laptop for a week? (Reverse if the laptop holds the master and the desktop the sync source -- having only a single writable location makes SVN suboptimal in this use case as opposed to distributed SCMs where new commits can be introduced in any repository and merged from there to the others).

      As for rsync, it also isn't entirely suitable, because the problem space the poster is looking to solve is best addressed with file-level bidirectional synchronization -- presumably with deletes cascaded only when intentional, and with proper merge handling in cases where a file is modified in one side and moved into a new directory on another -- or possibly even sub-file-level resolution (in cases where a file has been updated in both places in a manner where a merge algorithm can resolve the resulting conflicts). Cascading only from the laptop to the desktop or only from the desktop to the laptop doesn't help much if you've updated File A on the desktop and File B on the laptop -- but a distributed SCM will manage that case just fine so long as the changes can be merged. Simply put, it handles a wider range of the set of cases one can run into in the task at hand -- and thus is a much better fit.

      [On a larger scale: SVN and rsync are good tools, but there are other good tools out there too -- and places where they make more sense. It's fine and well that you have a shiny hammer and a crowbar and know how to use them -- but it wouldn't hurt to play around with a screwdriver for a while and figure out what it does best]

    10. Re:Subversion by Anonymous Coward · · Score: 0

      perhaps you need to suck my cock, faggot

    11. Re:Subversion by Godman · · Score: 3, Funny

      I sat here for about 10 minutes before realizing that s/h/it wasn't a regex joke and why it was actually funny... :-/

      --
      I have this really funny quote that I like to put here. Unfortunately, there's this really annoying thing called a char
    12. Re:Subversion by Anonymous Coward · · Score: 0

      Who is really the faggot? You are the one wanting a guy to suck your cock! Grow up dick head.

  3. iFolder? by belly69 · · Score: 4, Informative

    That sounds exactly like what Novell's iFolder is made for:

    http://www.ifolder.com/index.php/Home

    1. Re:iFolder? by Anonymous Coward · · Score: 2, Informative

      Agreed. I work for a little company with a few hundred on-the-road consultants who keep their lives (gigabytes of data) on their laptops and on desktops at work. The workstations are on when they are there and sometimes even when they're gone, and the laptops are on sporadically. When logged in everything synchronizes once per minute. If changes happen on the laptop they go to the server and, if the workstation, they also go the workstation. The synchronization is bidirectional and happens with the newest versions of the files no matter how many clients. We used to use regular "shares" in windows (AD) but dropped it when we added this technology. It's still available for some purposes but our IT department doesn't even use them anymore when iFolder is available because it's faster, automatic, and seamless.

    2. Re:iFolder? by freckledp · · Score: 2, Informative

      I used to work for Novell, traveling two or three times a month. My personal office had several computers and I had multiple laptops that traveled with me. Using either Windows or Linux clients of iFolder, I was able to easily sync files from one machine to another, always ensuring that I had the latest copy of whatever file I needed. It sounds like exactly what you need.

      One possible problem: you have to store the information in a folder (which you specify). Only the data in that folder is synced.

      HTH

      -FreckledP

    3. Re:iFolder? by Myself · · Score: 1

      If iFolder were mature, and if the server ran on anything sane or common, I'd agree with you. But for the moment, setting up an OpenSUSE VM on my XP box just to run one piece of software isn't what I call fun. It's a project worth watching, certainly.

    4. Re:iFolder? by Anonymous Coward · · Score: 0

      Retard, OpenSuse is very Common, iFolder has a windows client. You did say Server didnt you? Or did you mean Toy because if you want to synchronize a Toy with a Toy then why don't you use "Offline Folders". Hah, good luck with that. I must warn you, like the operating system it is bundled with, its not that mature.

    5. Re:iFolder? by killjoe · · Score: 4, Interesting

      >What do you mean if iFolder was mature?

      I don't know how mature the novell version is but the open source version is very far from being mature. In fact there hasn't been a stable release in more then two years and nobody knows if or when there will ever be a stable release.

      A while ago all the developers on ifolder either quit or were fired and the development was moved to india. Since then the pace of development has slowed down to a crawl and the new developers try to understand the code base and fix bug reports.

      Right now you can download something that is beta-ish but I certainly would not trust my mission critical data to it. If you want something that works you are going to have to pull off the trunk and compile it.

      --
      evil is as evil does
    6. Re:iFolder? by Anonymous Coward · · Score: 0

      Welcome to vendor lock-in... sounds like "anything sane or common" must mean windows to you since, to people who have tried it, Linux is definitely sane and is more-common than I think most realize. Still if you're looking for a windows-only solution on the server side that's the vendor you'll get, eventually. The biggest headache an IT administrator friend of mine has with iFolder is being able to upgrade the SAN fast enough because it works so well the users think they should be able to put more and more data on there all the time. That's a training problem, though.

    7. Re:iFolder? by hendersj · · Score: 2, Informative

      iFolder3 lets you specify whatever folder you want - I sync about 5 or 6 folders and share them with different people in my department.

      (And if you're who I believe you are (CC), hey! Drop me a line...)

      --
      Insanity is a gradual process; don't rush it.
    8. Re:iFolder? by Anonymous Coward · · Score: 0

      iFolder is easy to setup and works a treat, its just not well publicised. I had it running on a SLES server, after playing around with the config breaking it because i didn't RTFM and trying again, it all worked fine, and hasnt had a problem since.

    9. Re:iFolder? by LadyLucky · · Score: 0, Flamebait
      iFolder is pretty lame. We moved to a Novell-type infrastructure at work and trust me, the best way is to use all that installed software as little as possible. It just doesn't work properly.

      For example, if you try to share the folder on a new instance (say because your laptop died, a pretty valid use case) it can't seem to figure out to pull everything down, rather than push up deletions.

      In short, like everything else from Novell, it's got some neat features, that are too buggy to be useful and have a user interface made by a sadist.

      --
      dominionrd.blogspot.com - Restaurants on
    10. Re:iFolder? by flar2 · · Score: 1

      I've been using iFolder for three years and it has worked perfectly. I use it to sync my home and office machines through my university's firewall. It's a PITA to build on Ubuntu and is a little heavier on system resources than I'd like, but it has been very reliable.

    11. Re:iFolder? by killjoe · · Score: 1

      Which version?

      --
      evil is as evil does
  4. Unison by graphicsguy · · Score: 2, Informative

    I use unison. Why would you need to run it manually every time? It can be run in batch mode. I am mostly using it for live backups these days rather than true bidirectional synchronization, so I could really use rsync and some scripts, but I've gotten pretty comfortable with unison.

    1. Re:Unison by whardier · · Score: 1

      I use Unison as well. However most version control software will work just fine as well, like subversion, mercurial, and git. The only reason I use Unison more often than using version control is file permissions.

      Unison requires some fancy locking if you set it up to be automatically run via a scheduled task or crontab entry. However thats easy to script. Most version control software will handle the locking perfectly.

    2. Re:Unison by EvanED · · Score: 1

      Read the summary! Unison alone won't do it.

      If you want to suggest Unison, provide a description of how to work around the problems that are mentioned in the question you're trying to answer. He even linked to the same site you link to!

      (And yes, there are some, but mentioning Unison doesn't help. The poster knows about it already.)

    3. Re:Unison by sgyver · · Score: 1

      My point about conflicts not being resolve automatically was to emphasize the relative fragility of such a requirement. Unless you set a rule about which system trumps the other in this type of scenario, it will not always be possible to resolve conflicts. Work will be lost. As with most of the off-the-cuff requests you see here, the devil really is in the details with respect to trade-offs, etc. We simply don't know enough from the original post to do anything but offer guesses as to what might the poster think he/she was asking for in the first place. Then again, if the poster had very specific requirements in the first place, perhaps he/she wouldn't be asking us what we think they need. (As usual?) Automating unison does not require a work-around. It is already documented. Automatically resolving real conflicts is an entirely different issue. It won't happen. Automatically forcing overwrite on an unattended sync is easy. Just use '-force'. Either choose to live with some manual intervention, or some certainty that things will be lost, and in the best case, just woefully difficult to track/troubleshoot. There is no magic solution here. (As usual?)

    4. Re:Unison by graphicsguy · · Score: 1

      I'm curious to hear about what kind of locking you are referring to (so I know if I need to do things differently). If files are modified during their synchronization, unison skips over them and reports it in the log file. They would just get sync'd next time. The only real special handling I do is skipping the unison log file and copying that separately after the synchronization.

    5. Re:Unison by whardier · · Score: 1
      I had 3 machines set up to sync to one repository, the repository was on a slower connection at my house. The syncs were done every 10 minutes or so.

      I had to use a remote server command via the unison command line which established a lock file on the server side. I had the same script locally to establish a lock file locally to keep other unison processes for this sync profile away until I was done transferring data.

      The reason I did this is because unison fails to lock its files correctly and allows multiple syncs at a time. My machine at work would upload a 50 meg file which one of my home machines would in turn delete since the server had no idea it exists until the trasnfer is complete. And so on.. and one large ISP bill later (10GB home DSL quota) - I made it do locking using the following:

      The command I ran on the local machine was the local lock script, and I referenced the remote lock script:

      /home/me/bin/homeunison.sh -auto -batch -servercmd /home/remoteme/bin/homeunison.sh

      homeunison.sh:
      #!/bin/sh
      lockfile-touch ~/.unison-home-lock &
      BADGER="$!"
      unison $@
      kill "${BADGER}"
      lockfile-remove ~/.unison-home-lock
    6. Re:Unison by graphicsguy · · Score: 1

      Ah. Very useful information. I hadn't thought about simultaneous synchronizations. Thanks!

    7. Re:Unison by Anonymous Coward · · Score: 0

      >And yes, there are some, but mentioning Unison doesn't help. The poster knows about it already

      Sadly, he doesn't. Or at least not in full.

      He could run unison in batch and on a repeat. This would then do everything that he wants.
      He could then run unison interactively when to deal with conflicts that arise.

      To be honest, I think that the OP is asking for too much. For this form of syncrhonisation,
      you HAVE to have user interaction in some circumstances (conflicts), so it's probably best
      to do it explicitly. For me, unison works wonderfully, and I just use and explicit launch.

      Phil

  5. my take by TheRealMindChild · · Score: 4, Insightful

    Man... You are late to the party. People have been struggling with this since the beginning of time (or so it seems). Especially database apps, where they need to work in "detached mode".

    I can't give you a flat out solution, because all situations are different. But I can pass on a bit of wisdom. The most important thing for you to do is create business rules for your synchronization. If the data on the server has changed and you made changes offline, who gets priority? You will have three categories of which a file can be... Client changes get priority, Server changes get priority, and Merge files. I would stay away from the last one. If you want to keep things simple, Id go for the "Server changes get priority" approach. In short, if you took an "online" file "offline" and came back, and the server copy has changed since, your offline edits are abandoned. This way, it makes it so heavily edited files have a shorter "check out window" (even if you don't use a checkout system), and forces the person taking the file offline to coordinate with everyone else that may edit this file.

    --

    "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
    1. Re:my take by kandresen · · Score: 1

      Agree, this totally depend upon what kind of files actually need to be synchronized with the server and how to deal with the files when both sides have updated one files since last sync.

      For all text readable types of files, like webpages, source code, xml files, etc. I would certainly go Subversion, however binary files are not really well maintained in Subversion, so then rsync solutions could likely be a better choice. Then again it depends upon the size and the quantity of files that may be modified between each sync. Sync with 100 000's of small files that are infrequently updated would be a waste with rsync, done that with quite bad result with a large shared webserver, it works but it was way too much of an overhead... Found better solutions then through shell scripting and rsync in combination, but knowing subversion today, I would now opt for that instead since most of what change are text files.

      The benefit of subversion is that even in situations where one file is changed on both sides, the page will typically allow you to merge both changes. The only exception is if the file is updated over the exact same lines and same spots.

    2. Re:my take by Namlak · · Score: 1

      ...and Merge files. I would stay away from the last one.

      What's Why wrong not with merge merging files files automatically?

  6. common problem by ILuvRamen · · Score: 2, Insightful

    When the laptop is reconnected, I want the data to automatically re-sync. The issue is, the data on the server may have changed as well, which needs to propagate back to the laptop.
    And there you have the problem with synchronization. There's no mind reader program (yet) so sorry but you're going to have to make up your mind about how to handle it when the server version changed too. Either find a way to merge the files or start making decisions about when they can get modified (ie a checkout system) or if the server's or the laptop's version is always right or if the user gets to choose (bad idea). As for programs, stop looking at famous ones, they suck. That's like using Norton as your antivirus. Find some freeware or open source one that does just what you need and isn't overly complicated
    --
    Google's Super Secret Search Algorithm: SELECT @search_results FROM internet WHERE @search_results = 'good'
    1. Re:common problem by Fex303 · · Score: 1

      There's no mind reader program (yet) so sorry but you're going to have to make up your mind about how to handle it when the server version changed too.
      Since the original questions said that the sync should work "invisibly to the user (except in the case of conflicts)", I'd guess they have given that some consideration. Besides, I can easily imagine a piece of software that is configurable to do any of the various options you suggested.

      Find some freeware or open source one that does just what you need and isn't overly complicated
      I think that was kind of the point of asking Slashdot. Do you know of any such software?
    2. Re:common problem by mcrbids · · Score: 0, Redundant

      And there you have the problem with synchronization. There's no mind reader program (yet) so sorry but you're going to have to make up your mind about how to handle it when the server version changed too. Either find a way to merge the files or start making decisions about when they can get modified (ie a checkout system) or if the server's or the laptop's version is always right or if the user gets to choose (bad idea). As for programs, stop looking at famous ones, they suck. That's like using Norton as your antivirus. Find some freeware or open source one that does just what you need and isn't overly complicated

      Did you mean to reply to the original poster? Because it looks like you've simply restated the problem. Do you have any suggestions for "freeware or open source one that does just what you need and isn't overly complicated"?

      --
      I have no problem with your religion until you decide it's reason to deprive others of the truth.
    3. Re:common problem by LS · · Score: 1

      Thanks, Captain Obvious! If you read the entire submission, he mentions in parentheses "(except in the case of conflicts)". He is aware of the problem. And thanks for the tip on using open source or free software over commercial software. That's a new one over here at Slashdot.

      Man, the mods are definitely asleep today.

      LS

      --
      There is a fine line between being a cultivated citizen and being someone else's crop. - A. J. Patrick Liszkie
  7. Am I missing something? by aero2600-5 · · Score: 2, Insightful

    From the summary:

    "The issue is, the data on the server may have changed as well, which needs to propagate back to the laptop."

    So let me get this straight.. You have the old version of the file, somewhere. The new laptop version of file, somewhere. And the new server version of the file, somewhere. And you want the software to decide which to use and copy it to both the server and the laptop?

    There are even more issues here, but it kinda sounds like you want some artificial intelligence that you can download.

    Aero

    --
    Please stop hurting America -- Jon Stewart
    1. Re:Am I missing something? by Anonymous Coward · · Score: 0

      Boy am I glad I'm not the only one to see the problem that way. I am a hardware guy, and I confess I have *never* understood what the software people at work are babbling about when they talk about trunks and branches and stuff like that. How can you reconcile two files worked on by two people back into one? What are they cooking up?

    2. Re:Am I missing something? by sholden · · Score: 2, Informative

      Have fun trying to merge changes in an executable binary file.

      Not seeing the difference between arbitrary files on a disk and files that have been explicitly version controlled is I guess what makes you the hardware guy - does that mean you nail the floorboards down?

    3. Re:Am I missing something? by Anonymous Coward · · Score: 0

      Who cares if the files have been explicitly marked as Jell-o caramel pudding? How can two files worked on by two different people on two different computers get merged back into one? What prevents person A from dicking around at random? Seems awfully fragile and error-prone, but I guess living in a fantasy world is what makes you the software gyuy. ;)

    4. Re:Am I missing something? by Elladan · · Score: 1

      You can merge the changes together in some reasonable way as long as the files are edited in local spots. It works like this:

      Person A and Person B both check out file Version 1.
      Person A modifies the first half of the file.
      Person B modifies the last third of the file.
      It comes time to merge. Typically, one of them commits their changes first. For example, Person A commits. Now the file is version 2.
      Now, Person B attempts to commit, and is told that their version is obsolete. They ask for an update.
      The update process now downloads the difference between Versions 1 and 2, and applies the delta to Person B's local copy. As long as the changes are in different parts of the file, this works fine.
      Now Person B can commit too.

      Obviously, for this to work, both people need to edit different bits of the file. If they edited the same bits, the merge algorithm would pretty much have to throw up its hands and defer to the AI. The AI being in fact the meat puppet known as Person B. "Hey, meat puppet, this is your computer talking. Merge these files for me!"

      This sort of thing can work for other sorts of files too. For example, you could have a shared image, and as long as both people modified only different little bits of it, it's ok. Or you could have a huge circuit design model, and so on. Of course, This sort of thing fails miserably is most operations involve changing everything. For example, if someone applied a gimp filter, your image-merge procedure is probably screwed. The same if someone say, reformatted an entire source file.

    5. Re:Am I missing something? by syphax · · Score: 1


      It's not that complicated. You have a directory structure on machine A with files and folders. On machine B, you have - wait for it - the same structure. SO synching is a matter of comparing file lists, hashes, last-modified timestamps, and last-synched timestamps. It only gets sticky when both files have changed since the last sync, which is an exception that usually merits human review to sort out which one to keep. If you have reasonable practices that minimize collisions, no big deal. Of course, it's also possible to merge (text-based) files automatically.

      --
      Simple Unexpected Concrete Credible Emotional Stories
    6. Re:Am I missing something? by VGPowerlord · · Score: 1

      Usually, if they're modifying the same file, they're modifying different parts of it.

      So, if I make changes to function A and you make changes to function B, the server says "OK, they changed different parts, so I'll apply person A's change, then person B's change creating version C."

      This is overly simplistic, but you might get the idea.

      --
      GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
    7. Re:Am I missing something? by EvanED · · Score: 1

      You can merge the changes together in some reasonable way as long as the files are edited in local spots.

      Usually. The spots have to be independent too; not checking CVS or SVN merges before committing (even if they don't conflict from CVS's point of view) is a great way to sometimes break the build.

    8. Re:Am I missing something? by Anonymous Coward · · Score: 0

      Not at all really.

      Lotus Notes Replication does this - down to a field level.
      Mostly conflicts are handled automatically, but if not, they are simply dealt with.

    9. Re:Am I missing something? by ajs318 · · Score: 1

      If you have to have more than one person modifying a file at the same time, that just tells me that the file needs to be split up. Keep each function in a completely separate source file, if you have to. Isn't that what #include and its equivalents are for?

      --
      Je fume. Tu fumes. Nous fûmes!
    10. Re:Am I missing something? by sholden · · Score: 1

      We manage just fine. If it's too complicated for you to understand then just pretend the magic file fairies do the work. Of course there are times different people change the same section of a file in which case whomever was last gets to play the part of magic file fairy.

      Person A is prevented from dicking around at random because they'd like to stay employed.

      The merging is done with something along the lines of: http://www.cmcrossroads.com/articles/cm-journal/a- trustworthy-3%11way-merge.html (warning: advertisement disguised as article)

  8. Not easy at all by chebucto · · Score: 1

    You'd have to do a diff between the sever and laptop versions of particular files, and the user would have to choose what edits to save or erase.

    Or, you could use a versioning system, making a new point-series branch whenever there was a difference between laptop and server versions. But you would still be left with the problem of choosing which edits to save and which to dismiss.

    In the end, you need humans to discuss the changes made and assimilate them into a new master document whenever there is a difference between client and sever versions.

    --
    The English word fart is one of the oldest words in the English vocabulary.
  9. rsync! rsync? rsync! by Anonymous Coward · · Score: 0

    and the user needs to know which machine contains the correct data Any time you have a de-synch you have to know which machine is "authoritative". That's built into the problem and there is no way to avoid it.

    I'd say rsync is your best bet.

  10. Unison and a cron job or login script. by wirelessbuzzers · · Score: 1

    If you want it to ask only on conflicts, you can write a wrapper script that runs in batch mode, greps the output for conflicts, and pops up the graphical one if there are any.

    --
    I hereby place the above post in the public domain.
  11. Windows might be good for something by wpanderson · · Score: 3, Interesting

    My Briefcase in Windows 95. It even has a cute ickle briefcase icon.

    Somewhat seriously, Offline Files in Win2K/XP is something I've yet to see done well on any other OS.

    --
    neuro at well dot com (when I post, it's my opinions, no-one elses)
    1. Re:Windows might be good for something by Anonymous Coward · · Score: 0

      I have so many issues with Offline files and laptops especially. Files will just start disappearing from the laptop while its offline. Its terrible.

    2. Re:Windows might be good for something by Anonymous Coward · · Score: 1, Informative

      I've yet too seen it done well in Win2K/XP as well. I've had tons of issues having My Documents on a server and making a offline copy. Windows would during copying of files just drop the connection and go into offline mode etc. It's a great idea but I have yet to see it work reliably.

    3. Re:Windows might be good for something by arivanov · · Score: 4, Informative

      Offline most likely derives its origins from Coda which was designed to work for 100MB at most. It seems to inherit all of its problems when the data volumes become big. I have had to support an environment where people casually offlined 3-4GB documentation trees and it was falling over on regular basis.

      Further to this, offline files has a number of fairly fundamental bugs in the actual implementation. It records both the IP and the name of the server somewhere when doing the offlining. As a result if the name (but not the drive) or the IP changes your entire offline tree goes south and stays offline. You can neither delete it nor reconnect it and the only way of dealing with this is either surgery to the network (aliasing IP addresses) until you reconnect. The only alternative is to rebuild the affected laptops from scratch.

      --
      Baker's Law: Misery no longer loves company. Nowadays it insists on it
      http://www.sigsegv.cx/
    4. Re:Windows might be good for something by Anonymous Coward · · Score: 1, Informative

      Periodic connection drops are almost always due to samba. It just isn't robust enough to use for something like this -- if you hammer the smb part, the nmb part won't give timely replies (or was it the other way around?), and the netbios share will be marked as offline.
      It can sometimes be alleviated by ensuring that a Windows box is the master browser, by setting "local master = No" and "preferred master = No" in smb.conf.
      Alternatively, if you only have W2k/XP clients on the network, "disable netbios" seems to do the trick too.

    5. Re:Windows might be good for something by Anonymous Coward · · Score: 0

      Offline folders are useless. We switched it off and moved everyone to SyncToy instead.

    6. Re:Windows might be good for something by dos · · Score: 4, Informative

      It records both the IP and the name of the server somewhere when doing the offlining. As a result if the name (but not the drive) or the IP changes your entire offline tree goes south and stays offline. Go download csccmd 1.1 from Microsoft.

      csccmd /moveshare will take care of this.
    7. Re:Windows might be good for something by hauntingthunder · · Score: 1

      err

      I suspect the op wants a system to sync a database not just copy files from a to b.

      use Asynconous Queues MSMQ is what msoft call this when the lap top connects the data gets processed -

      I looked at this and set up a test for one of the new registry's a while back (to handle acounting transactions - the registry proper ran on Unix)  the CTO poo pood the idea but in the end i belive they went with it.

      --
      You will never get to heaven with an Ak 47... But A Zu 30 is good for Low Flying Cherubim
    8. Re:Windows might be good for something by GreenEnvy22 · · Score: 1

      There is also a powertoy available on Windows, called SyncToy. I haven't used it as much (I don't think it will run automatically when it detects you are back "online", you have to tell it to synch, but it does seem to actually synch well.
      I also set it to run on startup.

      We use offline files in our office. We haven't had too many issues with it. One issue was with people who have incredibly complex folder filing systems. They often had paths over 255 characters long, which the offline files tool does not like.
      We only use offline files for the users own network drive, not any drive shared with others (maybe their AA), so changes being done to both the server file and the offline copy are very unlikely.

    9. Re:Windows might be good for something by Tweezer · · Score: 1

      If you use offline files with DFS you solve this problem. We have all of our users access data through dfs links. This way we can change a server out to a new name or move a particular share and nothing on the client side changes.

    10. Re:Windows might be good for something by R2.0 · · Score: 1

      "Offline Files in Win2K/XP is something I've yet to see done well on _any_ OS."

      Fixed that for ya.

      --
      "As God is my witness, I thought turkeys could fly." A. Carlson
    11. Re:Windows might be good for something by juanhf · · Score: 2, Insightful

      windows' built in offline files is great; i only started using it in the last year or two and i feel like i have come from hiding and into the light.

      the system is configurable through group policy which makes it easy to setup the system throughout an enterprise.

      here are some links:

      how to use offline folders http://support.microsoft.com/kb/307853

      in your case, there is a way to fix offline folder problems (when and if they occur) have a look at:

      how to re-initialize offlines files cache: http://support.microsoft.com/kb/230738/en-us

      last but not least, here is a link to group policy for offline folders: http://technet2.microsoft.com/windowsserver/en/lib rary/9dba5df2-0359-4fa4-bdcf-dd6ae5ca345e1033.mspx ?mfr=true

  12. Coda by norkakn · · Score: 4, Insightful
    1. Re:Coda by gouldtj · · Score: 2, Interesting

      I've always wanted Coda to work for this, but I haven't ever gotten it working. My current thinking is that I'd need to set up a server on my laptop, and then have the client talk to the local server. Then the two servers could sync.

      Does anyone have any information or case studies on how to make this work for a small network? Easy conversion tools? It seems like the ideal solution to me, but getting it to work seems difficult.

      --Ted

    2. Re:Coda by EvanED · · Score: 2, Interesting

      My current thinking is that I'd need to set up a server on my laptop, and then have the client talk to the local server.

      I haven't actually used Coda, though I'm planning on it for a small network myself, because this is exactly what it was designed to do. But why would you need the server on the laptop? All you should need is a client. Have you tried it that way and it didn't work or something?

      I do hear it's a pain to set up though.

    3. Re:Coda by blymn · · Score: 1

      You don't need a server on the laptop - put the server on the server (duh) and just have the laptop as the client. It will work fine. It is not really any more of a pain to set up than any other server.

    4. Re:Coda by wildjim · · Score: 2, Informative

      Funnily enough, I've been working on exactly this over the weekend. Unfortunately, the docs are terrible.
      Some of the Wiki info suggests that things have improved, but I'm discovering a decent-sized client cache (10Gb) so that I can offline most of what I'd use has horrendous occaisional slow-downs and pauses.
      I'm planning on testing a local/client server and a client with the RVM turned-off this week, but I'm not keen on the size that the RVM file(s) will have to get to.
      Previous comments in here suggesting it's not really designed for modern data-sets (gigs rather than megs) are starting to look as if that's true... Other than that, it actually looks like a reasonably good design!

    5. Re:Coda by gouldtj · · Score: 1

      Honestly, I'm not sure. I originally tried to set up the client, but I ran into some of the same problems that wildjim is having. Basically that I couldn't get enough space. My home directory is about 40GB, so I'd need to have atleast that much cached. It is just a guess that the solution would be putting a server on the laptop -- I'm not sure how'd it work out.

  13. Windows & Make Available Offline by goofy183 · · Score: 4, Informative

    I'll likely get buried but here it goes:

    In Windows you can mark a folder on a network share as "Available Offline". Windows will copy all of the files to the local HD and if the server isn't available just work with the local copies. When the server is detected Windows will automatically sync the files and pop-up asking the user about conflicts (keep local / keep remote). When connected writes automatically go to both the local copy and the server.

    One of the few places that Windows has right and I haven't found a Linux or OS X solution for that is nearly as nice.

    1. Re:Windows & Make Available Offline by Techman83 · · Score: 5, Informative

      A great solution till it breaks... believe me it does break and when it does be prepared for heartache. There are ways to recover it, but I think it assumes to much and the potential to screw up is a big risk. There were several users at my place of employment that found out this the hard way and now we ban the usage of it. It's not so much finding the best tool, but managing the process overall and how to do that.. Well we are still in the process of developing that one!

      --
      # cat /dev/mem | strings | grep -i cat
      Damn, my RAM is full of cats. MEOW!!
    2. Re:Windows & Make Available Offline by frdmfghtr · · Score: 1

      I did that with a Dell laptop running Win2K in a docking station, with the "My Documents" folder mapped to my Win2K server directory. Worked marvelously.

      --
      Government's idea of a balanced budget: take money from the right pocket to balance...oh who am I kidding?
    3. Re:Windows & Make Available Offline by Anonymous Coward · · Score: 1, Interesting

      Yeah, if it actually worked.

      When I tried using it I found it made the system intolerably slow when resuming from standby or placing the laptop in a dock or anything that made the system try to resync the files.

      And then it was just plain wrong about determining which files needed syncing.

      At the time I did this, about a year after XP came out, it was clear from usenet groups that the windows solution was woefully tested and just not ready for prime time.

      It was then that I started using Unison, which when combined with ssh tunneling makes for a great solution.

    4. Re:Windows & Make Available Offline by knitterb · · Score: 2, Interesting

      Works well for me too. Sure, every now and then you get a mishap or a mistaken overwrite, but that's what [client and server] backups are for, right?

      I use it with my wife for our financial data. She syncs, makes changes, then next time I connect I can choose to use the server version or my version. Since there is no version control, you have to communicate. Then again, with the way version control works, if you end up merging a lot, perhaps too many people are working on the same problem anyhow.

      In the end it works well.

      --
      -bk
    5. Re:Windows & Make Available Offline by weicco · · Score: 1

      Care to elaborate how did it broke up and how one can recover from such a situation?

      --
      You don't know what you don't know.
    6. Re:Windows & Make Available Offline by wa2flq · · Score: 1

      Typical Microsoft.

      Only about 80% thought out and even then poorly executed.

      1) Breaks often and no repair utility. You have to save your local files, do a complete erase and reload/newsync to recover.

      2) Re-Synches files for no apparent reason. No access and no changes.

      3) Not smart enough to use local files when you have a long latency and/or low bandwidth connection back to the server (e.g. business trips, via vpn). So even though you have a good copy synched copy locally, it forces an upload of the original. You can force a disconnect, but if you have the patience to fiddle with the cmd line. Yeah, there are few register hacks, but who wants to navigate through the that cesspool.

      4)Hard to manage the list of files to exclude from the utility. Of course MS decides what is good for you.

      5)Doesn't scale worth a damn.

    7. Re:Windows & Make Available Offline by Simulant · · Score: 1

      Yeah... it's got major issues if you're a power user and it sucks when it breaks. The worse thing, imo, is that the local files are actually all stored in the same (and buried, in typical MS fashion) directory with NO REGARD for the original directory structure. When it's working, offline files appear to the user to be an exact copy of the server dir tree, in fact it appears that you are accessing the server itself. HOWEVER, when it breaks and you actually need to find the local file location, they're all somewhat renamed and dumped into one dir. There's some database layer managing & faking the user experience. I honestly don't know what the hell they were thinking. Yeah you need a database but why not preserve the original dir tree? For Windows, you're better off with a good 3rd party synch solution... SuperDuperFileSynchronizer (not free but every feature you could ask for) or pathsync (free, from the guy who brought you Winamp), or even a rsync port. That said, MS Offlines Files does seem to keep my finance people satisfied, most of the time.

    8. Re:Windows & Make Available Offline by Techman83 · · Score: 1

      Wish I had more time to go into the specifics. But alas I'm rather busy.

      There is a tool that I used to extract the information from the single file it stores all the information in. (csccmd http://support.microsoft.com/kb/884739 )

      It is not an appropriate tool for a corporate environment, IMHO

      --
      # cat /dev/mem | strings | grep -i cat
      Damn, my RAM is full of cats. MEOW!!
    9. Re:Windows & Make Available Offline by TheNetAvenger · · Score: 1

      I'll go with you that offline files is not perfect.

      But for it to 'continually' break or have problems as you suggest it would more likely be a situation where the infrastructure was not setup properly in the first place, with poor shares designs, trying to use Samba servers, etc...

      If properly setup, even in high volume business environments we have dealt with clients with 1,000s of users all utilitizing offline files and even offline profiles (including desktops, etc), and the fail rate is virtually 0.

      Also if you have the chance to work with Vista, the offline files is dramatically improved in areas where XP and 2003 lacked. For example Vista handles encrypting the offline content automatically, can handle multi-user workstations utilizing the same offline files without a structure share policy/design, and can also handle extremely large folders of data with very fast replication even over low bandwidth connections using remote differential compression.

      I hope you have better luck in the future with offline files, and I suggest a better strategy in your network design, truly a good design with strong policies (computer and human) will ensure reliable offline file operation.

    10. Re:Windows & Make Available Offline by Techman83 · · Score: 1

      I'll agree with most of your post. It is a all about design and strategies. But I believe the tool is far from perfect and there are far better solutions out there.

      It is designed for a small environment with a couple of users. If to be used in a large environment I'd prefer something that can be centrally managed. Like most M$ tools they are very much client based with little in the way of management on the server side.

      Vista We'll be leaving alone for a while, to many other things to get up and running before trying to implement an OS that hasn't got it's first service pack yet.

      --
      # cat /dev/mem | strings | grep -i cat
      Damn, my RAM is full of cats. MEOW!!
    11. Re:Windows & Make Available Offline by mattgoldey · · Score: 1

      Ever hear of Group Policy? You can use it to manage every detail of Windows, including Offline Files.

    12. Re:Windows & Make Available Offline by AbbyNormal · · Score: 1

      Interesting. Its part of our group policy in synching all Document and Settings to the file server. All Favorites/History/Documents are all synchronized when you close out. We are using WinXp for the workstations and Win3k3 for the server. Easy to backup and easy for our sales people to sync up on the road (VPN).
      (Note: To avoid being modded down for saying something positive about M$, we also run our firewall/web/database on Linux..Yay! Go Penguin!).

      --
      Sig it.
    13. Re:Windows & Make Available Offline by Techman83 · · Score: 1

      Yep, Pretty Archaic to be honest. ZENworks is a much more powerful solution :)

      --
      # cat /dev/mem | strings | grep -i cat
      Damn, my RAM is full of cats. MEOW!!
    14. Re:Windows & Make Available Offline by __aagmrb7289 · · Score: 1

      I've been using this feature since Windows XP came out - with a Windows 2000 and Windows 2003 server. I've had zero problems. I've heard of zero problems, until today. Did the files on the server get erased? And then the local compressed file got trashed? That's what would have had to happen. And that sounds like something bigger then a software bug.

    15. Re:Windows & Make Available Offline by LarsG · · Score: 1

      and Win3k3 for the server.

      I know that's a typo, but this is too good to pass up. You did remember to get SP2, right? Any news on Duke Nukem Forever?

      Anyhow, I'm a bit surprised that so few have mentioned Lotus Notes. I know it is often called Bloatus, with good reason, but when it comes to keeping stuff in sync it is quite excellent.

      --
      If J.K.R wrote Windows: Puteulanus fenestra mortalis!
    16. Re:Windows & Make Available Offline by Anonymous Coward · · Score: 0

      So yours is the standard drivel about microsoft product being broken, but then you admit that the users didn't know how to use it.
      Nice one.

    17. Re:Windows & Make Available Offline by Serindipidude · · Score: 1
      I'm amazed you have so little idea of how your technology works. The Windows Offline files could not be more defective by design if they tried.

      Offline files is global and is the same offline files for everyone using the computer so if someone else uses the same computer they don't have full access to all your file the whole thing dies in the ass.

      It ALWAYS uses the server copy and then syncs it back to the HDD, So if you go to a remote branch and plug in to the network it accesses the files over the WAN even though they are right there on the HDD and it then sycns over the WAN AGAIN, couldn't be more stupid if it tried.

      And don't even think about using Microsoft Access! An MDB file in your offline folders will stuff it up completly. What? You thought a Microsoft product would be DESIGNED to work with another Microsoft product? I'm sorry I didn't catch which outer planet you just landed from...

  14. Foldershare by Offtopic · · Score: 2, Informative

    I've been using Foldershare for several months now to synchronize several folders on three different machines. It has worked well so far and it is free. It's available at: https://www.foldershare.com/

    1. Re:Foldershare by Anonymous Coward · · Score: 0

      I've been using Foldershare since before it was bought out by Microsoft, and it's absolutely perfect for this. One program on every computer that wants to play, then you tell them which folder(s) to sync, and changes made anywhere propagate everywhere else, as soon as "everywhere else" goes online. If laptop and server both have changed versions, the program brings that fact to the user's attention and asks the user to choose which version to keep. Works quickly, in the background, and flawlessly, in my experience.

      Microsoft, to my considerable surprise (I use OS X), hasn't messed with Foldershare and has even made it better by making it entirely free.

      I teach, and it's great to be able to finish up my lecture notes on my desktop, go to class, pop open my desktop, and know that, by the time I finish attaching the power cord and opening the appropriate folder, my lecture notes will have been synced to my laptop.

    2. Re:Foldershare by JayAEU · · Score: 1

      Even though FolderShare only works for Windows, it's the perfect tool if you're on that platform. The good thing about it is that it can handle more than 2 PCs syncing, so you can have up to a dozen PCs synced for a certain directory.

      The only drawback is that the maximum number of files allowed per synced share is 10k. While this sounds like a lot, it really is not.

    3. Re:FolderShare by mattswell · · Score: 1

      FolderShare is great; i used it for two years when I was on campus and each of my computers had a WAN IP. However, FolderShare fails to work correctly if you have two computers behind the same firewall. You cannot change the ports FolderShare uses, thus each computer behind your firewall requires the same ports and also requires that those ports are open to the world. There is no LAN mode.

    4. Re:FolderShare by KingRufus · · Score: 1

      FolderShare has been a great solution for my Windows PCs, and I've been using it for over a year. It's free and is now a Microsoft product. After the initial setup (almost painless), the app sits in the system tray and you are never reminded of its existence. You simply have a folder that is synced over the internet -- it feels just like you have a WAN network share. It also handles generic conflicts in a reasonable fashion, similar to SVN -- each revision of the file is saved with the originating device name appended to it (so if I modify todo.txt on my laptop while it is offline, and also modify it on my desktop, when the laptop goes online both machines will now have a "todo.txt.laptop" and "todo.txt.desktop" file).

  15. HAL? by Anonymous Coward · · Score: 0

    Umm, couldn't you write a hal rule to recognize the device when it's plugged in and then execute rsync?

    G++

  16. a tale of a virtual machine by Semireg · · Score: 1

    I work as a unix/vmware consultant for a company in the midwest where every client wants to give me an XP notebook with their special-sauce VPN software installed. I accept the laptop and immediately P2V it using VMware's Converter, then import the VMDK files into Parallels and run the clients system on my MacBook. Lately I've been eyeing an iMac... and you guessed it, how can I run the client's VM on the iMac in the morning at home, and then run to a cafe in the afternoon with my MacBook? The only thing I can think of is bastardizing a DR tool such as DoubleTake. Has anyone tried this? How well does it work?

    1. Re:a tale of a virtual machine by imemyself · · Score: 1

      It may not be an optimal solution, but you could use remote desktop (maybe using VNC to start the appropriate VM in VMware on your iMac). You could maybe tunnel RDP and VNC through SSH for better security. It wouldn't help you if you didn't have connectivity, but since it sounded like you may have been just using them for the VPN client that may not be a huge deal.

      You could also look at getting a 2.5" portable USB or Firewire drive and storing the VM's on there. While it would be an extra thing to carry with you, I would personally rather do that than have to start up my laptop and make sure it has synchronized the latest version from my desktop every time I wanted to go somewhere.

      --
      Every time you post an article on Slashdot, I kill a server. Think of the servers!
  17. Actually it's really easy by Anonymous Coward · · Score: 0

    If you're running Windows on the desktop (I know, I know) you right-click the folder and choose "Make available Offline".

    It caches all files locally so if the server connection is lost, you can continue working. When you connect back up, it syncs the versions.

    http://www.microsoft.com/windowsxp/using/mobility/ learnmore/offlinefiles.mspx

    1. Re:Actually it's really easy by RAMMS+EIN · · Score: 1

      ``t caches all files locally so if the server connection is lost, you can continue working. When you connect back up, it syncs the versions.''

      Yep. And it magically works even in the face of conflicting changes, and never breaks. Others have been struggling with this for years and years, but now Microsoft has come and saved the day: they've implemented their own system, different from all the others, and it's better and more user-friendly. As always.

      (And yes, I was being sarcastic)

      --
      Please correct me if I got my facts wrong.
  18. or you could buy a mac.... by Anonymous Coward · · Score: 0

    There's this great thing called Portable Home Directories. Works great. Does exactly what you want, and all in the background. Helpful, no? :P

  19. OS X Client & Server does a good job with this by phillymjs · · Score: 3, Insightful

    I'm not exactly sure what Apple uses under the hood to accomplish it. I don't think it's rsync, because I've fooled with the rsync built into OS X and I get errors frequently, but their home syncing works great.

    When you have a mobile user account (i.e. a network account with a local copy of the home folder on the workstation), it will sync every so often (frequency and exactly what is synced/skipped can be configured on the server end, and the user can kick it off manually from the client end). To the best of my knowledge, the sync is bidirectional, so if you log into another machine with a mobile account and modify the server copy, the changes will be reflected on the mobile copy at next sync. It makes my life easier because if a laptop user's machine gets lost, stolen, damaged, or destroyed, we've automatically got a backup copy of the data on it up to the last time it was synced.

    In the event of conflicts, the user is presented with a dialog asking which version to keep, including file size and modification date.

    Note that I'm not suggesting you throw out your existing hardware and buy Macs to get this feature, but maybe look into exactly how it's done on the Mac and see if you can duplicate it on your systems.

    ~Philly

  20. In OSX, portable home directories by shamborfosi · · Score: 5, Informative

    I have OSX laptops using portable home directories to do exactly what you are asking for.. a network home directory that is automagically sync'd to my laptop (thus making it portable). It works both ways, and I'm definitely happy with it. I'm not sure which OS you're using though. I wrote about how to do it in an article: Full Stack: Portable Home Directory over NFS on OSX authenticated via OpenLDAP on Debian Linux if you're interested. I also just got everything to work over AFP to an OSX server running open directory as well.. but haven't had time to write it up yet (btw, a lot fewer steps).

    1. Re:In OSX, portable home directories by goofy183 · · Score: 1

      I'd love to get that writeup about doing this over AFP!

    2. Re:In OSX, portable home directories by Anonymous Coward · · Score: 0

      With WGM, it's easy, under the Mobility icon. Keep in mind though, that mobile syncs are difficult in cases where your organization employs a border router that blocks LDAP and AFP traffic. OS X is known to timeout (pinwheel of death) while it desparately tries to contact the OD or AFP server that it can't reach through the firewall. I'd recommend unbinding your clients from OD when they are mobile, as well as background syncing only, so they at least are able to login, setup VPN and sync manually. Unfortunately ~/Library is only synched on login/logout.

  21. I like foldershare by chgray · · Score: 1

    I'm a huge fan of Microsofts foldershare (http://foldershare.com). It's free and does a great job for my needs. It's not 100% what you want - the basic idea is that all files are copied to all your computers. When you make a change (on or offline) FolderShare detects the change notification. Once it's able to communicate again with the FolderShare server in the sky it syncs your data with all connected computers. do note that even though there is a server in the sky this server doesnt hold copies of your data, its just there for relay - so that you can get to your files even if you've got firewalls on all sides. my family uses this quite a bit - my Mom has a folder on her desktop named "Chris' Computer" we use this folder as a place to share pictures and other files too large for email. sharing your favorites/my documents is also wicked cool - your laptop, server, and desktop all have the same files -CG

  22. Groove by Anonymous Coward · · Score: 1, Interesting

    Well their once was a really great program called Groove, but now MS ownes it, but it does exactly what you are looking for... It even has a nice interface. Obviously does not work with Linux without some tweaking but I've had success with CrossOver Office and Groove on FC7.

    1. Re:Groove by planckscale · · Score: 1

      I concur. I saw a neat demo of Groove server recently. However, when exploring the cost and setup of a Groove server, it became prohibitively expensive. This one will be a difficult sale to the PHB's and network admins that "don't want to poke more holes in the firewall."

      --
      Namaste
  23. Try coda by blymn · · Score: 2, Interesting

    Have a look at http://coda.cs.cmu.edu/ This is a disconnectable file system. It could be what you are looking for. Certainly, that is what I use for doing the same thing.

    1. Re:Try coda by EvanED · · Score: 1

      Why does this post get modded redundant but the 47 suggesting rsync and/or Unison don't?

  24. allway sync? by surfer2210 · · Score: 1

    What about http://allwaysync.com/? I use it for syncing my laptop to desktop to thumbdrive to other computers on my network... runs on Windoze but eh...cant have everything.

  25. Reduced to a network problem. by twitter · · Score: 1

    There's no mind reader program (yet) so sorry but you're going to have to make up your mind about how to handle it when the server version changed too.

    No, he does not need mind reading voodoo, he needs some good network scripts. Unison prompts the user for conflict resolution. All he needs is something that starts Unison when the laptop hooks up to the right network. There has got to be something that can identifies the right network and asks the user if they want to do a sync.

    --

    Friends don't help friends install M$ junk.

  26. Rsync + inotify by aldragon · · Score: 1

    Rsync would do this very nicely, except that it requires manual initiation. So what you do is hack up a quick python/perl/etc script to do the following:
    1) When it regains connection with the server, run a full rsync
    2) When inotify tells the script that a file has changed, rsync that one file. Perhaps buffer changes for set amounts of time so fewer rsyncs need to be run

    This should be possible to accomplish in less than a day of hacking in a language of one's choice.

  27. smart sync pro by kylehase · · Score: 1
    Rsync is great but if you're command line challenged you may find rsync intimidating. I've recommended smart sync pro to some of my friends who were looking for a sync program. My favorite feature is it's conflict resolution which is very accurate and easy to understand. Only drawback is that it's a commercial app so it does cost $.

    Unfortunately I don't know of any sync programs have a "trigger by network" feature so you'd still need to write some sort of script to initiate the sync.

    --
    You want fun, go home and buy a monkey!
    1. Re:smart sync pro by Anonymous Coward · · Score: 0
  28. Unison by sgyver · · Score: 2, Informative

    Maybe a two-way rsync tool made just for this purpose?
    You might have to do A-B, A-C, A-B type syncs for more than 2 paths, unless you stick to a hub/spoke or cascading distribution model.
    Not all conflicts are automatically resolved, by default.

    http://www.cis.upenn.edu/~bcpierce/unison/

    Good luck.

  29. Collaborative software? by SEWilco · · Score: 1

    Can Collanos be used for arbitrary files?

  30. commercial products. by deviator · · Score: 3, Interesting

    Offline Folders on a Windows client connected to a Windows server work reasonably well but sometimes get screwed up.

    Novell's iFolder is a very interesting alternative... runs on Linux/Apache/Java stack & only transmits changed blocks over an SSL connection.

    Other things worth looking into include Microsoft Groove--let's you synchronize an entire workspace with yourself on other computers or other people - and is relatively network & environment-independent (though Windows only)

    1. Re:commercial products. by bigshohn · · Score: 1

      I've had fairly good luck with Windows offline folders; however, there are a few gotchas. Things to watch for include microsoft jet based databases and other multiuser or transactional type files. In addition, sometimes Windows will forget the connection is present and you have to remap the drive at which point it remembers the offline status. I've been using this for well over 3 years at different organizations and haven't ever had a major failure, just a glitch here and there where I had to remap a drive.

      Regarding the file types, you can configure which types are allowed and not allowed in an offline folder setup via GPO. By default I think it excludes MDB, Microsoft Project, and a couple others.

      There was also a power toy released by Microsoft at some point called folder sync or something like that. It worked quite well.

      Since you are looking at Codafs and the like though, I suspect you are UNIX based and may not have this option.

      I've tried something called Groove, which was a peer to peer application and absolutely hated it. It required too much effort on the users' part to get something done.

      There is also something called "eroom" that I used to use. I think it was based on Documentum or whatever it was called then. It had a web based interface and an offline sync capability. It was quite straight forward, but the main area to watch for was versioning of files.

      IMHO, technology like this should be seamless and behind the scenes, which is why I prefer offline folders, but hopefully the above comments will give you a bit of a flavor for some other options.

  31. Unison and NetworkManager by Anonymous Coward · · Score: 0

    NetworkManager combined with a custom script should be able to address running Unison whenever connected to the correct network.

  32. try out dropbox by arashf · · Score: 0

    sounds like this is exactly what you're looking for: http://getdropbox.com/u/2/screencast.html we're in private beta, but if you shoot me a message I can get you in ;-).

  33. Synchronization Woes by JWSmythe · · Score: 5, Interesting

    A few people hit this one pretty well. rsync (and probably rsyncd).

        The more complex problem has been thrown at me a few times. What if it's not just one person?

        Say you have a repository of data that a dozen people may be working in. When they're all network connected, they're all dealing with the same file pool. When they take their off-line copies with them (unplugged laptops on vacation), they all make changes to the same files. Maybe mine is a one line change. Maybe one guy copy&pasted the first 3 chapters from War And Peace into a comment somewhere in the middle. Maybe another developer did some very intellectual looking changes but hosed some major functionality.

        When you start putting machines back on the network, who is right? The 6 guys who did real work are obviously right(ish), but they all made different changes. The very last change will end up being someone's 3 year old kid who was pounding on the keyboard right before daddy shut down the laptop, saving the new changes. Probably the last is the most recent, and right by most methods.

        It's not a pretty picture, and requires some intelligence to sort out the mess.

        The only "good" resolution I've found is to give logical authority to the changes. Bob is in charge of development. Any changes going into the development or production tree must clear him. He should be able to recognize that the 6 guys made changes, and diff them to come up with the common changes. The 3 chapters of war and peace go by the way side. And the guy with the 3 year old "developer" gets reprimanded.

        In the end, a good revision system and good backups are needed too. Something will slip through the cracks, and you'll need to roll back to something you hope is good.

        I take control over whatever I'm working on, so if I know I'll be working offline, I'll scp the data to my laptop, work on it on the road, and scp my changes up to the server when I'm done. Anyone else who may have worked in my project space in the duration should have known better. :)

    --
    Serious? Seriousness is well above my pay grade.
    1. Re:Synchronization Woes by OriginalArlen · · Score: 1

      A few people hit this one pretty well. rsync (and probably rsyncd). The more complex problem has been thrown at me a few times. What if it's not just one person? How about subversion? Multiple concurrent changes to arbitrary binary files schmoovely merged into one glorious hole.
      --

      Everything I needed to know about life, I learnt from Blake's Seven
    2. Re:Synchronization Woes by Anonymous Coward · · Score: 0

      That's obviously the problem version control systems have been designed for. The only issue is that distributed version control is extremely hard to get right when working on binary document files. We're going to need application standards for diffing and merging arbitrary document formats sooner or later. At the present state of the software industry, it'll probably be Microsoft that sets the proprietary standard.

    3. Re:Synchronization Woes by veci · · Score: 1

      Use Unison! It is a wonderful program working both on unix and windows. If a file is modified only on the server or the laptop, then the program automatically will propagate the modified one (based on check sum and not on date) to the other side. If the file is modified on both sides, then the use has/can decide what to do on a file by file basis. It inteligently updates files (moves only the changed parts of a big one). I have been using unison for 7 years and I had no problem with it and can only recommend it. I also liek to synchronize it manually (I know I always have a backup if I mess up something), but you can run it automatically (every 10 minutes or so).

    4. Re:Synchronization Woes by draggin_fly · · Score: 1

      OpenVMS had a good solution to the versioning problem back when I was working in that OS. Every file change got a version extension by default. This was opposite of the Unix philosophy at the time but I found it a useful feature anyway. For instance,

      group_paper;1
      group_paper;2
      group_paper;3
      ...
      group_paper;X

      In the problem you cite with multiple authors synching from multiple laptops, a VMS-type of synchronization would never overwrite a version. Users would unknowningly create extra copies with version number extensions that were mostly hidden. Then, when someone said, "Hey, this latest draft was written by a 3 year old!" the whole team of authors could go back to the earlier version numbers and find out what happened.

      It wasn't always convenient but it was more convenient than having files overwritten.

  34. Don't shoot by Anonymous Coward · · Score: 0

    But if you are stuck on a windows platform, take a look at Groove. It is one of M$ more recent purchases and included in their office suite. http://office.microsoft.com/en-us/groove/FX1004876 41033.aspx I would also welcome comments on its security (or lack there of).

    1. Re:Don't shoot by Matje · · Score: 1

      we are looking into using groove to keep a group of always-on-the-road consultants synchronized. From looking at the whitepapers I'd say security is well taken care of. All data is encrypted during transfer (i believe AES but I'm not quite sure). At least they spent ample time explaining the security features in their documentation so it seems they've at least taken it seriously. I don't have any practical experience with Groove though...

      is there anyone here with Groove experience? I'd love to hear whether it works well, what not etc.

    2. Re:Don't shoot by 511pf · · Score: 1

      Groove is Windows only, but works really well for sharing files among a small number of mobile workers and backing up individual laptop documents directories. I currently have about 20 almost completely non-technical, 100% mobile workers successfully using Groove to backup their data to my local server. To do this: setup a copy of Groove on the server and then setup a file sharing workspace in each person's personal drive. Setup Groove on each laptop and create a single directory where they'll store their documents. From the server's Groove install, invite each individual to their workspace and choose their documents directory as the sync folder. (I found it easier to do it for them, since it's a one time thing.) What you'll end up with is a copy of Groove running on the server with 20 (or whatever) file sharing workspaces - one for each user. As you've read, when users have an Internet connection, changes will synch automatically. Groove passes through VPN, NAT firewalls, etc. so there's no need to open ports anywhere. The documents on the server are synched copies, so they're just regular documents that can be opened, backed up, etc. You can also create a file sharing workspace and share it among several different users. Synchronization is quick since it only sends document changes. It's also very reliable. Now the caveats, issues, etc. * Groove will not sync PST files, so I strongly discourage their use. * Groove runs at logon, which slows down the boot time of PCs. Users on slower laptops (Pentium M 1.4 Ghz and below) notice the slowdown. * The more data you sync with Groove, the slower it gets. Synching 500 MB or less in a workspace is generally OK, but approaching 1 GB may slow things down noticeably unless you're on a dual core PC with lots of RAM. I encourage people to only put documents in their synch folder they actually need to backup, as opposed to 20 copies of the same PDF they already have as an e-mail attachment. * Groove 3.1 does not run as a service. I believe this is the same with Groove 2007, but I'm not sure. I have to leave it running on my server console and lock the server. * I'm using Groove 3.1, which has been really reliable for 18 months. However, I've started to experience some instability on the server side over the last several months. When the app crashes on the server, I restart it and everything continues as normal. Laptop users almost never have stability problems. * Groove will crash if you're running it on your server console and you logon with the same username to a non-console RDP session (Using mstsc.exe, as opposed to "mstsc.exe /console" when the console is already logged on). Basically, when you're already logged on to the console and you logon to a second, non-console RDP connection, Windows tries to load a second instance of the process. This crashes Groove 3.1. Not sure about Groove 2007. * Don't synch the user's "My Documents" directory. It contains the "My Music" directory, which is where iTunes stores music. I guarantee you'll have problems with file/workspace sizes if someone tries to synch their iTunes music. * When you install Groove on the server, put the Groove User data and System data folders on a drive with lots of space. If someone mistakenly synchs their music or photo collection, the Groove system data will fill up your C:\ drive. (The Groove user data and system data folders are application folders where Groove stores its internal data, not to be confused with the actual workspace folders.) * Grooveclean will cancel a pending sync set, which you'll need if a user synchs an ungodly amount of data. (This has happened to me several times). * When you get past 20 workspaces, all synching a large amount of data, you may be past what Groove is designed to do.

    3. Re:Don't shoot by 511pf · · Score: 1

      Groove is Windows only, but works really well for sharing files among a small number of mobile workers and backing up individual laptop documents directories.

      I currently have about 20 almost completely non-technical, 100% mobile workers using Groove to backup their data to my local server. To do this: setup a copy of Groove on the server and then setup a file sharing workspace in each person's personal drive. Setup Groove on each laptop and create a single directory where they'll store their documents. From the server's Groove install, invite each individual to their workspace and choose their documents directory as the sync folder. (I found it easier to do it for them, since it's a one time thing.)

      What you'll end up with is a copy of Groove running on the server with 20 (or whatever) file sharing workspaces - one for each user. As you've read, when users have an Internet connection, changes will synch automatically. Groove passes through VPN, NAT firewalls, etc. so there's no need to open ports anywhere.

      You can also create a file sharing workspace and share it among several different users. Synchronization is quick since it only sends document changes. It's also very reliable.

      Now the caveats, issues, etc.
      * Groove will not sync PST files, so I strongly discourage their use.
      * Groove runs at logon, which slows down the boot time of PCs. Users on slower laptops (Pentium M 1.4 Ghz and below) notice the slowdown.
      * The more data you sync with Groove, the slower it gets. Synching 500 MB or less in a workspace is generally OK, but approaching 1 GB may slow things down noticeably unless you're on a dual core PC with lots of RAM. I encourage people to only put documents in their synch folder they actually need to backup, as opposed to 20 copies of the same PDF they already have as an e-mail attachment.
      * Groove 3.1 does not run as a service. I believe this is the same with Groove 2007, but I'm not sure. I have to leave it running on my server console and lock the server.
      * I'm using Groove 3.1, which has been really reliable for 18 months. However, I've started to experience some instability on the server side over the last several months. When the app crashes on the server, I restart it and everything continues as normal. Laptop users almost never have stability problems.
      * Groove will crash if you're running it on your server console and you logon with the same username to a non-console RDP session (Using mstsc.exe, as opposed to "mstsc.exe /console" when the console is already logged on). Basically, when you're already logged on to the console and you logon to a second, non-console RDP connection, Windows tries to load a second instance of the process. This crashes Groove 3.1. Not sure about Groove 2007.
      * Don't synch the user's "My Documents" directory. It contains the "My Music" directory, which is where iTunes stores music. I guarantee you'll have problems with file/workspace sizes if someone tries to synch their iTunes music.
      * When you install Groove on the server, put the Groove User data and System data folders on a drive with lots of space. If someone mistakenly synchs their music or photo collection, the Groove system data will fill up your C:\ drive. (The Groove user data and system data folders are application folders where Groove stores its internal data, not to be confused with the actual workspace folders.)
      * Grooveclean will cancel a pending sync set, which you'll need if a user synchs an ungodly amount of data. (This has happened to me several times).

    4. Re:Don't shoot by Matje · · Score: 1

      Hey 511pf,

      Thanks a lot for your input. Sounds like it is a good choice for us!

      cheers,

      matje

  35. Vista ... shockingly by Anonymous Coward · · Score: 0

    Vista & Offline folders does this very very well.
    Much better than XP did (or at least more easily)

    It is really the only reason I don't reformat my laptop's drive an install XP.

  36. Coda, AFS, InterMezzo by RAMMS+EIN · · Score: 3, Informative

    There have been some efforts in the area of networked filesystems with disconnected operations. I remember checking out AFS, Coda, and InterMezzo years ago. At the time, I found something wrong with each of them, but they may have improved since then. Of the three, I think Coda is your best bet.

    --
    Please correct me if I got my facts wrong.
    1. Re:Coda, AFS, InterMezzo by dusty123 · · Score: 1

      As far as I know, the following applies:

      - Coda is quite unstable and complicated to install
      - AFS 2 is the successor of Coda
      - AFS is successfully used in various universities all over the world, so it is stable
      - AFS may not have offline-capabilities
      - AFS may be quite difficult to install/maintain

    2. Re:Coda, AFS, InterMezzo by Anonymous Coward · · Score: 0

      You got the heritage the wrong way around. Both Coda and OpenAFS are based on the original AFS2 codebase, they just went in different directions.

  37. Synctoy by flyingfsck · · Score: 1

    The WinXP Synctoy is excellent. Otherwise, you need CVS to allow you to merge changes!

    --
    Excuse me, but please get off my Pennisetum Clandestinum, eh!
  38. Handy Windows Syncing Tool by trawg · · Score: 1

    Not exactly what you're after but worth a mention anyway, I reckon:

    PathSync by Cockos (Justin Frankel of Winamp fame's new company).

    It has some automation features as well; haven't used them so can't vouch for them.

  39. you already solved your problem by coaxial · · Score: 3, Informative

    Simply instally unison or rsync or whatever and have the job kick off with whereami for linux (you'll have to find the main page yourself) or marco polo for macs.

  40. Rsync by Anonymous Coward · · Score: 0

    Personally I cant recommend rsync highly enough. The linked article is a basic introduction which explains what makes the utility to uncommonly good.

    Nick

  41. Vice Versa Pro by dcheest · · Score: 1

    I use Vice Versa Pro for 2-way syncing and it works very well. http://tgrmnn.com/

  42. iDisk does this by gig · · Score: 1

    An iDisk set to sync does exactly this. Any work you do locally syncs in the background whenever there is a network connection.

  43. FolderShare by sporkface · · Score: 1

    I use FolderShare for this, and have been happy with it. https://www.foldershare.com/

  44. common refrain by Bombula · · Score: 1
    That's like using Norton as your antivirus. Find some freeware or open source one that does just what you need and isn't overly complicated

    This is a common refrain, and I must say I find it puzzling. What about Photoshop for photo editing? Or Avid for video editing? Or Quicken for accounting? Where are the freeware versions of those applications? MS office applications happen to have free alternatives in OpenOffice and NeoOffice and so on, but only as a result of monumental interest in staging a pushback against the M$ monopoly. Taking this fight to all companies producing software for some amount other than 'free' is just silly.

    --
    A-Bomb
    1. Re:common refrain by oatworm · · Score: 3, Informative

      Not that it matters, but since you asked...

      Photoshop -> GIMP
      Avid -> LIVES - Note: I am not a video editor and have no idea if this program is any good.
      Quicken -> GNUCash, among others.

      I guess what I'm saying is that, based on your definition of "silly", there's quite a bit of silliness going on in the world today. *grin*

  45. Yes, you're missing something! by arth1 · · Score: 1

    No, there's another scenario that causes trouble too (and even more so), if just comparing file systems: A file that exists on one place but not the other does so either because it's new, in which case it should be replicated, or because it's been deleted on one of the two, in which case it should be deleted.

    The usual way of handling this is by comparing the timestamps on the directory too, and the one with the newer timestamp wins. This helps prevent new files from being deleted, but it isn't safe. Consider this:

    12:00 User creates Important_Document on the laptop.
    12:15 Another user deletes Silly_Document on the server, in the same directory.
    12:30 Synchronization. The sync software sees two documents on the laptop that aren't present on the server. Since the timestamp on the directory on the server is newer than on the laptop, both documents will be deleted from the laptop.
    Bzzzt!

    This is why a workable synchronization system must keep its own database of changes, and not just rely on comparing the file systems.

    Regards,
    --
    *Art

    1. Re:Yes, you're missing something! by arivanov · · Score: 1

      The entire sync/remote fs approach is fundamentally wrong for any place that has more than 2 people working on the same project/material.

      What if you DO NOT WANT to resolve the conflict right away? What if the document that has been changed by two people is 200 pages long and the changes are substantial and you have 10 minutes to get the data and run? Even if you have the time there are plenty of other reasons why you may want to postpone the merge and review.

      The only real solution is to keep documents in a revision control system. It has all that is necessary for this purpose - conflict resolution, versioning, branching, authentication, per-object authorisation, etc. Unfortunately, I have yet to see one that is capable of invoking application specific merge utilities (you cannot use bare diff on most document formats). This is what may be worth scripting though. It is not that hard to check the MIME type of the conflict file and invoke the correct editor based on MIME type and nearly all revision control systems have the hooks to do that.

      --
      Baker's Law: Misery no longer loves company. Nowadays it insists on it
      http://www.sigsegv.cx/
    2. Re:Yes, you're missing something! by Anonymous Coward · · Score: 0

      Mercurial (http://www.selenic.com/mercurial) can invoke custom merge tools. You'd have to edit the hgmerge script and get it to check the file type and invoke your custom merge app.

  46. SyncBackSE by __aalmrb3802 · · Score: 3, Informative

    If you're running Windows, I would recommend SyncBackSE (http://www.2brightsparks.com/syncback/sbse.html), which I expect you should be able to setup to do exactly what you asked.

    1. Re:SyncBackSE by seek3r · · Score: 1

      Agreed, I tried a BUNCH of solutions before settling on this to keep my 3 computers in sync

  47. OpenAFS by sid77 · · Score: 3, Informative
    As said before there're many choices, each ones with its own pros and cons, so I'll throw this one in: OpenAFS.

    As read from the main page:

    What is AFS?

    AFS is a distributed filesystem product, pioneered at Carnegie Mellon University and supported and developed as a product by Transarc Corporation (now IBM Pittsburgh Labs). It offers a client-server architecture for federated file sharing and replicated read-only content distribution, providing location independence, scalability, security, and transparent migration capabilities. AFS is available for a broad range of heterogeneous systems including UNIX, Linux, MacOS X, and Microsoft Windows
    Hope this helps, ciao
  48. Require Online Usage by dsstao · · Score: 1

    This is simple. Require your users to operate online for any data that needs to be shared. Internet access is literally everywhere, and accessible via wireless phones (as a modem), WiFi, hard-wired, internet cafes, etc. If your users are working for your company, setup an RDP or Citrix server and make it a business rule that requires them to operate online. Or, use Sharepoint (which is web accessible from anywhere)

    Benefits aren't limited to erasing sysadmin headaches, they also include absolutely no conflicts, no synchronization traffic, instant availability of changed data, instant on-line backups, the speed of SQL (for example) on a real server instead of 2005 Express on someone's laptop with a 5400 RPM drive. You also have all kinds of better security for the data as well compared to someone's laptop getting stolen.

    I think notebooks should be used for files you and you alone are going to be working with. If it's ever going to be shared or have the possibility of conflict, and especially with databases, make remote access to it mandatory.

  49. Old DRBD Link by sdirector · · Score: 1

    First of all, I couldn't agree more that DRBD is not at all suited for the task.

    But I thought I'd point out a slightly newer source of information about it. drbd.org is the home of DRBD. You might be able to pick out the age of the linked howto by the mention of support only being for the 2.2 kernel. :)

  50. can't be done by ccdotnet · · Score: 1

    At least not in the manner the OP requires. If you're the only person ever editing these files, then there are lots of software solutions that do this just fine, that other people have already suggested, including the creaking Briefcase from Windows 95.

    But if you want to allow for the possibility that other users in the office have changed those very same files, which you had "offline" over the weekend, then forget about it.

    For a genuinely multi-user, genuinely collaborative approach to a problem like this, you need to shift to a completely different document management paradigm - for example: using a web-based document or spreadsheet application where multi-user editing and online availability has been built-in from the start (Google?). Of course this only works for specific types of data, not all data, and only when you're connected (for now).

  51. WinRSync by Didanix · · Score: 1
  52. In great *nix tradition by Jessta · · Score: 1

    In great *nix tradition, you should solve the problem by combinding many single purpose tools.
    Use something like http://0pointer.de/lennart/projects/ifplugd/ to launch a script that runs Unison file sync when ever you are connected to the network.

    --
    ...and that is all I have to say about that.
    http://jessta.id.au
  53. CacheFS - on OpenSolaris by Darren.Moffat · · Score: 1

    If you run an OpenSolaris distribution on the laptop (the server can be any NFSv3 compliant server) then CacheFS will do exactly this for you.
    You can even prime the cache using cachefspack initially. It works in disconnected and connected mode and is automatic.

    An alternative tool on OpenSolaris distributions is filesync, it uses the same config syntax as cachefspack does but works by simply using
    cp/mv/rm/chmod/chown and doesn't include its own transport layer (so needs to use NFS or similar).

  54. Syncback by mk2mark · · Score: 1

    I downloaded a little program a few years ago called Syncback, I find it does what I need between windows computers. Does the synchronisation thing too. http://www.download.com/SyncBack/3000-2242_4-10548 273.html?tag=lst-0-1

  55. inotify... by msimm · · Score: 1

    At least on more recent versions of Linux. I've been looking for a slightly different solution to filesystem synchronization (for webservers using iSCSI over ethernet to cache to local disk). Rsync would be a solution with a kernel that supported inotify, but we are using 4u5 systems so I'm left assessing expensive replication solutions or upgrading the whole system to RHEL5 with a tight deadline.

    --
    Quack, quack.
  56. My personal solution: JAVA +ANT by rluberti · · Score: 1

    it works fine even on different OSs......I believe you can make bi-directional too....
    my version is just few lines and it has email notification when it has finished:

    script to run it:
    set ANT_OPTS="-Xms256m -Xmx256m"  This setting is to handle many files
    ant -v -logfile log.txt

    build.xlm:

    <project name="backup" default="start" basedir="/">
        <description>
           Script to backup my files
        </description>

         <property name="backupFrom" value="BackupSystem@mydomain.com"/>
         <property name="backupAdmin" value="Me@mydomain.com"/>
         <property name="BackupDestDir" value="y:"/>
         <property name="NetworkDestDir" value="\\10.10.1.167\Backup"/>

         <target name="init">
        <tstamp/>
        <echo message="Backup started: ${TODAY} @ ${TSTAMP}"/>
          </target>

    <target name="copy" depends="init" description="copy the files" >

        <echo message="Removing ${BackupDestDir} drive....."/>
        <exec executable="net" failonerror="false" failifexecutionfails="false" >
            <arg line="use ${BackupDestDir}  /d"/>
        </exec>

        <echo message="connecting ${BackupDestDir} drive....."/>
        <exec executable="net" failonerror="true">
            <arg line="use ${BackupDestDir} ${NetworkDestDir}"/>
        </exec>

        <!-- All my stuff -->
        <copy todir="${BackupDestDir}/SyncDir"  verbose="true" failonerror="false" preservelastmodified="true">
            <fileset dir="/Documents and Settings/User" >

            </fileset>
        </copy>

    </target>
    <target name="start" description="backs up my files" >
        <mail mailhost="mail.mydomain.com" mailport="25" from="${backupFrom}"
        tolist="me@mydomain.com"  subject="backup's log - ${TODAY} ${TSTAMP}"
        charset="ISO-8859-1">

            <fileset dir="/Documents and Settings/User/Backupscript">
                <include name="**/log.txt"/>
            </fileset>
        </mail>

        <echo message="Backup finished: ${TODAY} @ ${TSTAMP}"/>

    </target>

    </project>

  57. Don't automate it by Richard_J_N · · Score: 1

    A sync might take some considerable time (even rsync is a few minutes with lots of files). What if the user needs to interrupt it.
    You probably should make this manual (at least via a confirmation dialog), so that if the user is only connecting for a few seconds, it does not try to sync. Also, the user can then control priority - he may want to get to the web first, rather than waiting while an Office service pack downloads...

  58. BeInSync - private peer to peer syncing by lieutenant · · Score: 1

    http://www.beinsync.com/
    Does 2 way syncing, with versions and conflict management, offline/online modes and web access , AND includes group syncing as well.
    Currently windows only :( OSX and Linux versions are somewhere in the works.
    (full disclosure; one of my old companies, but we did create this software for this exact problem for us )

  59. Powerfolder by koninc · · Score: 1

    I use http://www.powerfolder.com/ for syncing about 30 gb of audio between myself and my collaborators. Its worked great so far, can be run without an internet connection - LAN only for instance (or via Hamachi). Has worked great for me.

  60. Mobiliti by theatreman · · Score: 1

    Try this: http://www.mobiliti.com/ * File synchronization and backup solution (includes outlook backup and synchronization solutions) for Laptop and desktop users. * Virtual network (offline) access to network over slow or unavailable networks. You can travel with your network. * Faster Synchronization using band width optimization techniques like file level differencing. * Central Mobiliti Profile control using Deployment and management solution.

  61. Unison, Rsync & NTP by Colin+Smith · · Score: 3, Informative

    Unison can be scripted, added to a login script. As can rsync on windows. Alternatively you can add a polling batch file which wakes up every so often and checks to see if the server lives. (Yes, even on Windows)

    Rsync can sync in both directions, but you decide one of the sides is the master and sync that one first, in the case of conflicts the master rules. It isn't possible to choose on a file by file basis at sync time as you can with Unison.

    Oh, and NTP is absolutely vital when doing any synchronisation.

    Basically. Either you do it manually and manage conflicts at sync time, or you do it automatically and define one of the sides as a master in the case of conflict. There's really no way round this, software just isn't sophisticated enough to decide what you're thinking.

    The truth is that filesystem syncing isn't ideal for a very dynamically updated file system. It is best used on fairly static filesystems or one way syncing. Documentation, backups and the like.

    --
    Deleted
    1. Re:Unison, Rsync & NTP by Random+Walk · · Score: 1
      Basically. Either you do it manually and manage conflicts at sync time, or you do it automatically and define one of the sides as a master in the case of conflict. There's really no way round this, software just isn't sophisticated enough to decide what you're thinking.

      Sure there is another way: newest file wins. There are situations where this would be the most logical choice, but nevertheless I couldn't find software that would support this, thus had to write it by myself...

    2. Re:Unison, Rsync & NTP by ajs318 · · Score: 2, Interesting

      DEC had all this sorted out back in the days of the PDP-11! Filenames would get a version number appended (such as LOGIN.COM;12) and you could specify how many versions to keep hanging around. Writing a file without specifying a version number would create a new version, reading a file without specifying a version number would use the latest version.

      --
      Je fume. Tu fumes. Nous fûmes!
    3. Re:Unison, Rsync & NTP by Colin+Smith · · Score: 4, Insightful

      Sure there is another way: newest file wins. But this means that any number of intermediate edits by arbitrary numbers of people will simply and silently be removed if someone updates an obsolete version between syncs.

      nevertheless I couldn't find software that would support this, thus had to write it by myself... Eh? Rsync supports it. rsync -u ...

      --
      Deleted
    4. Re:Unison, Rsync & NTP by Colin+Smith · · Score: 1

      No, they didn't. Today we have file locking. The problem is when the network is disconnected and we have several versions of a file.

      --
      Deleted
    5. Re:Unison, Rsync & NTP by awwaiid · · Score: 1

      "unison -batch" syncs all non-conflicting changes. I dropped this in cron to run several times a day, and then do a filter so that it emails me on conflicts and I resolve them at my leisure.

    6. Re:Unison, Rsync & NTP by Anonymous Coward · · Score: 0

      But this means that any number of intermediate edits by arbitrary numbers of people will simply and silently be removed if someone updates an obsolete version between syncs. Unison keeps a checksum of both files, so that it will detect the conflict (asking for user input unless an automatic merge rules has been defined).

    7. Re:Unison, Rsync & NTP by EvanED · · Score: 1

      Oh, and NTP is absolutely vital when doing any synchronisation.

      You could also keep version numbers around. Increment the version number on change. When syncing, look at the original version number and whether it has been updated. That's all you need to know to determine if there's been a conflict.

      If you want to get really fancy, you could store a hash of the original version. That protects against "changes" that are really just changes to the same thing.

  62. csync2, perhaps? by fghaas · · Score: 1

    DRBD is for high-availability clusters with sub-minute failover and synchronous replication. It is not suitable for server-to-desktop file replication, let alone two-way. The DRBD link in the post is horribly outdated; current information about DRBD is available from http://www.linbit.com/. Or from my blog, for that matter. :-)

    rsync has some painful deficiencies when it comes to lots of files being synced on a frequent basis. Csync2 (http://oss.linbit.com/csync2) addresses some of those; it may be more useful for the usage scenario described.

    Disclosure: I work for LINBIT, the company behind DRBD. Csync2 was written and is being maintained by a former employee of ours.

  63. Can BackupPC be used with Cygwin on Windows? by Futurepower(R) · · Score: 1

    It says BackupPC is *nix only. Can it be used with Cygwin on Windows?

    1. Re:Can BackupPC be used with Cygwin on Windows? by JayAEU · · Score: 1

      It probably can, but I wouldn't recommend it. Run BackupPC on Linux, which can back up Windows and Mac clients just fine using SMB/CIFS and/or rSync.

  64. Conduit? by haeger · · Score: 1

    There seems to be a project for Gnome called Conduit that sort of does what you want. I think. I haven't tried it.
    It does however look like a very ambitious project aimed at syncing both files and other data between both computers and other services. .haeger

    --
    You are not entitled to your opinion. You are entitled to your informed opinion. -- Harlan Ellison
  65. Rsync.... by mubes · · Score: 1
    My lazy-git solution.....on my Mac, but should work anywhere;

    sudo sh
    crontab -e
    50 * * * * /Users/<username>/bin/dobu
    Where dobu contains;

    rsync -e ssh --exclude-from=/Users/<username>/bin/dobu-exclude --delete -ax --progress ~<username>/ <username>@<ssh capable server>:<directory>
    ...and I'm never more than an hour out of date, from pretty much anywhere in the world.
  66. Subversion by severoon · · Score: 1

    I agree—subversion isn't really the right tool for syncing data in two places. Having said that, if you want to keep revision history and sync it, then the latest subversion might be right up your alley. Included is a svnsync tool that is intended to sync a "live" repo (one that you use regularly for commits) with a backup repo (exists solely as a copy).

    As far as automating backup, assuming you're talking about linux, I would say that the best approach is to simply write a short script that pings for the presence of your server. If found, it mounts the remote drive, rsyncs, and unmounts. If the transfer is interrupted, no worries—it'll resume next time you connect. Assuming the rsync succeeds and exits normally, you can have a clean umount, otherwise you'll have to umount forcefully.

    --
    but have you considered the following argument: shut up.
  67. Windows Vista by Stevecrox · · Score: 1

    I use two vista PC's connected on a network ones a Laptop the other a desktop. The laptop is setup to sync with the desktop through the sync centre, so whenever I log into the network with it it makes sure that the chosen directory contains the most recent files in both folders. works great for me

  68. tsync by canburak · · Score: 1

    anyone tried tsyncd?

  69. I use... unison, sleepwatcher and a bash script by Anonymous Coward · · Score: 0

    I have used unison on both linux and mac os x, and have been very happy - even with a mixed OS environment (ie. mac laptop, linux server). Currently I use unison, initiated by a script which runs everytime the mac wakes (using the command line utility sleepwatcher on mac os) - the script first checks to see if it has run today (I only want a daily sync) and then pings the server (I only want unison to run when I'm at home on my network) - if all passes, it then syncs.

    Finally, it scp'ies a copy of the unison session log across to the server, so I can check that both my and my wife's laptops are synchronising without errors. (The whole process happens in the background on my wife's computer, so she's unaffected by it until she needs the server copy should disaster strike!)

    Unison also has the ability to keep backups of 'old' versions. Simply periodically run 'find' on the backup directory with appropriate '-mtime +90' (ie. 90 day old files) and '-delete' flags to delete backed-up versions of older files. Ah, a poor-man's version control...

    Anyway, the mac os mix of it-just-works-GUI and command-line-fu is sweeeet. Unison: highly recommended. Custom bash-script: priceless.

    djol

  70. Roaming profiles by MrNemesis · · Score: 1

    I've been trying to set up my Linux desktop with Windows-alike roaming profiles for ages now.

    I have the kerberos single sign on for a multitude of services. I have the LDAP user metadata. I have NFSv4 file shares secured with kerberos, and autofs homes that enable me to use the same app settings on each machine. I have a groupware server (Kolab) serving all of my users (all two of them, ha!). But can I find any way of accessing my home drive (reliably) on my laptop when it's not plugged into the network?

    If I ask on any forums, I'm either told to just use NFS homes (which of course doesn't work when your laptop might be a) on the other side of the planet and b) not plugged into the internet). So I need a way of syncing my server:/home/user with laptop:/home/user bi-directionally. Since there doesn't seem to be any easy way of doing it built into any Linux distro, I created a bunch of shellscripts (basically just a bunch of rsync commands that don't sync certain directories, e.g. ~/.maildir) that are location aware (i.e. they can tell if I'm on my local LAN or not), and sync to/from the file server at startup, and then just to the fileserver at shutdown (or of course I can inititate them manually). It's not perfect though, and I've had to restore some items that have been clobbered from backup (granted, windows often does the same thing with roaming profiles). It also means keeping a fairly disciplined file hierarchy - otherwise you can get broken symlinks galore, or config files that are repeatedly overwritten.

    However, I believe the Linux desktop is crying out for a simple and automated way of doing it (perhaps a modified version of unison that, instead of querying the user for resolving conflicts just dumps conflicting files into a seperate directory?) - for most deployments, shared NFS homes are perfect but for laptop users outside of the network they're useless.

    I've tried Coda and AFS and, apart from being hard to set up and containing (to me) severe limitations that doesn't really suit them for online/offline use, they seem to be fairly unstable. Perhaps I suck at adminning Coda and AFS, but I personally think using a different, and rather complex, filesystem for roaming homes is unnecessary and I wasn't really keen to put too much time into it.

    Disclaimer: I'm not attempting to replicate MS' roaming profiles, because I think it can be done better - I just don't see any way of doing it other than shell script hackery at the moment, and I definitely need a way of doing something akin to roaming profiles. Should have filed my own Ask Slashdot ages ago :D

    --
    Moderation Total: -1 Troll, +3 Goat
    1. Re:Roaming profiles by Colin+Smith · · Score: 1

      If I ask on any forums, I'm either told to just use NFS homes (which of course doesn't work when your laptop might be a) on the other side of the planet and b) not plugged into the internet). So I need a way of syncing my server:/home/user with laptop:/home/user bi-directionally. Since there doesn't seem to be any easy way of doing it built into any Linux distro, The reason it's not built in is that it's really non trivial, it is not a solved problem. How does the software decide which version is the correct one?

      Your solution/unison is about as good as it gets. With home dirs I make the laptop the master in the event of a conflict the version on the laptop is considered to be the real version.

      --
      Deleted
  71. CVS by hubertf · · Score: 1

    I use CVS to synchronize between several working places (home desktop, work desktop, notebook). It's not 100% transparent, but as you'll always have to push a "sync up/down!" button a "cvs commit/up" is as close as you can go.
    I guess any other version management tool can be used too, I just tend to know and like CVS.

      - Hubert

    1. Re:CVS by myz24 · · Score: 1

      I'd put in a vote for subversion over CVS because of the improvements. There is a great GUI app called tortoisesvn for Windows that works very well. You have to setup a subversion server though...

  72. iFolder - if it was stable... by baptiste · · Score: 1

    As previous posters have said, this is a tricky problem to solve. iFolder probably handles it the best out of most of the products I've tried. You can create folders easily, the background task is very lightweight to transmit changes, and best of all is the SSL web interface to the folders, which was simple, polished, and easy to use. It's multi platform too. When Novell released the code, I figured there would be significant development of it because this was such a common problem, especially as Novell has put a small group of developers onto the project as well. But that never materialized. Community support was non-existent and Novell retasked the iFolder team and development hit a wall. It's sad because of how well laid out it was. The backend was pretty scary in terms of what it ran on, but v3.6 was trying to fix that. I've been running v3.4 to sync around a dozen different folders across probably 25 users, with granular permissions. It's been great, but I really was hoping 3.6 would see the light of day... SVN shows some churn, but not a whole lot. Looks mostly like bug fixes, but the build system is completely broken - builds used to post daily.

  73. Bad choice of sync tool by Colin+Smith · · Score: 1

    This is a classic version control/configuration management scenario.

    Look at Subversion. It's good enough for most people. Easy to use clients and servers for Linux/unix/mac/windows.

    --
    Deleted
  74. Subversion is for stupid and ugly people by Anonymous Coward · · Score: 0

    Subversion is for stupid and ugly people, just ask Linus. http://developers.slashdot.org/article.pl?sid=07/0 6/03/004214
    http://www.youtube.com/watch?v=4XpnKHJAok8

    If you must over think this problem for non-computer literate users, at least use GIT.

    Personally, I use the built-in `copy` that 4NT provides with an update switch. http://www.jpsoft.com/4ntdes.htm I suppose xcopy or xxcopy are also options.

    1. Re:Subversion is for stupid and ugly people by cduffy · · Score: 3, Insightful

      git's chunk-based rename handling is interesting, but bzr's directory-level handling is closer to what most users expect. (Does the git behavior make more sense for the kernel source tree? Sure! Does it make more sense for Joe Blow's home directory? I'd need some convincing there).

      Out here in the Real World, folks setting up revision control systems need to count "stupid people" (read: artists and web designers who are too busy making art or designing web pages to care about revision control except inasmuch as it's a way to back up and distribute their work) among their customers. For a great many cases, subversion is Good Enough, and it has excellent Windows support, integration with just about every IDE under the sun, TortoiseSVN and other nice pretty hand-holdy tools available which simply aren't ubiquitous among SCMs written with hardcore users in mind (seemingly to the exclusion of those that aren't). SVN isn't distributed, which sucks. SVN has an ugly hack of an excuse for a rename handling algorithm, which sucks. SVN is slow as molasses compared to some of its competition and lacks merge tracking (and thus history-sensitive merging) and has a gawdawful working tree library and sucks in any number of other ways -- but it is a compelling replacement to CVS, and sometimes that's what the customer needs, no matter what shiny happy features ${YOUR_FAVORITE_SCM} may have and no matter how many ways SVN manages to annoy the power user.

      And trust me, I learned this one the hard way.

      As for the 4NT copy suggestion, the whole bidirectionality and rename handling arguments come into play.

    2. Re:Subversion is for stupid and ugly people by rawler · · Score: 2, Insightful

      There's a reason why SVN don't distribute well. It simply don't branch well.

      And in branching, most of the GUI-users just don't get a clue and practically eliminates any chance there was for decent branching/merging.

      SVN/Tortoise are good for one thing, snapshotting, and that should better be handled by the filesystem itself anyways. (Why are filesystem snapshotting STILL not mainstream, btw?)

  75. RAID by ajs318 · · Score: 1

    Easiest way? Just create a RAID1 array between the laptop's internal HDD and an identical-sized file mounted as an NFS share. (You'll need the relevant modules compiled hard into the kernel, or in your initrd.) If the share isn't found at bootup, the array will run degraded (i.e. with just the HDD). If the share is detected at bootup, the array will be re-syncronised in the background. Metadata on the internal HDD will indicate that it was correctly updated, so you needn't worry about causing an unintentional rollback!

    --
    Je fume. Tu fumes. Nous fûmes!
  76. Apple's HomeSync by numbski · · Score: 1

    HomeSync works great - although if you're not on OpenDirectory you have to play some hackery to use it. Just a word of warning though - if your server blows up that hosted your network home directory, and you rebuild DO NOT HOMESYNC.

    It will think the server copy is newer, and happily blow away the home directory on your laptop! :( I thought "oh, it'll just copy my home back off of my laptop..."

    NOPE.

    Anyhoo, absolutely love it. Paired with OpenVPN, my laptop syncs my home directory every 15 minutes so long as I'm connected to the internet or the local network. If you're not afraid of xml files, it can be hacked to sync absolutely everything, otherwise by default it skips ~/Library (as there are some things in there that do not make sense to sync across the network), thus for exampe, Firefox bookmarks don't get synced by default, nor do your extensions. I've modified it to go ahead with those. I'm hoping to move my home directory out of NFS into AFS soon, but that's been slow going. So far those LDAP+Kerberos (definitely worth it!)+HomeSync rocks. Add AFS in and I can ditch HomeSync.

    --

    Karma: Chameleon (mostly due to the fact that you come and go).

    1. Re:Apple's HomeSync by PacoCheezdom · · Score: 1

      Care to write/link to a howto? homesync doesn't seem to be enabled without some hacks.

    2. Re:Apple's HomeSync by numbski · · Score: 1

      That's exactly right. Without OpenDirectory you *do* have to do a few hacks. Googling should return several hits on how to do it.

      --

      Karma: Chameleon (mostly due to the fact that you come and go).

  77. get a mac....... by dreemkill · · Score: 1

    mobile home directory between os x server and client automagically syncs the machine for you, in the background

    --
    dreemkill.
  78. It's never easy, but... by Anonymous Coward · · Score: 0

    Rsync and many of the others require to be installed on both the server and the client. However, if you mount the remote folder with either NFS or CIFS on boot you can use any program of your choice (even your own script) and it only has to be installed locally. Next you could write a small script to check if the mount is active (check for the existence of any files/folders in the local /mnt location perhaps?) and if so, invoke the program of choice. (I like Unison or ViceVersa under Crossover.) Lastly set up cron to run the script on boot and then again every X minutes afterwards. Make a shortcut to your script on the desktop and click it before shutdown (if anything has been saved/changed since the last cron increment). There are other ways I can think of that are easier to implement, but they get horrendously complex from a user point of view.

  79. Laptop/Server Data Sync - Freeware by MrNobodyOne · · Score: 1

    I've personally been using SyncBack for years with tremendous success, both as a general use and as a data manager. The basic features are usually enough, however the expert mode really shows the usefulness of the utility. http://www.2brightsparks.com/syncback/

    1. Re:Laptop/Server Data Sync - Freeware by sniperu · · Score: 1

      Yes, SyncBack does a pretty decent job and it's user friendly too.

  80. Re:OS X Client & Server does a good job with t by pixr99 · · Score: 1

    OS X uses Apple's MirrorAgent. It works well and exists exclusively on the client. OS X Server is *not* a requirement to make this work. I'm running a FreeBSD server at home to handle this. OpenLDAP and NFS get the job done. My Macs don't care that the server isn't OS X.

  81. Re:Windows & Redirect by skidv · · Score: 1

    How about using redirection? I'm not sure if it is the same as offline folders, but you can redirect the folder to a place on the network. Here's microsoft's tactical explanation

    http://www.microsoft.com/resources/documentation/w indows/xp/all/proddocs/en-us/gpx_redirecthome.mspx

    Even if you are not running active directory, on a windows pc, you can run gpedit.msc and enable redirection on an individual basis.

    Although this document discusses using the "home directory" you can redirect to any network share and path.

  82. Use a mac . . . by ygbsm · · Score: 1

    use a mac and set up a mobile account - it handles everything neatly for you . . .

  83. robocopy by Bionic+Vapour+Boy · · Score: 1

    I use Robocopy on Windows to backup my stuff on USB drive. It has an option to run on background. Robocopy synchronizes continuously. I run it as a scheduled task with separate user account (the tasks is set up to start on boot). It continues to work even if I take off my USB drive and attach it back later. It takes about 2 MB of memory and doesn't need much cpu. Robocopy does not have versioning capabilities. On *nixes I prefer rsync or rdiff-backup.

  84. I use Unison quite a bit by CFD339 · · Score: 1

    ..on linux boxes, and I know there is a win32 version as well. Its command line driven, and uses a database hash list on both sides to determine what has changed. It has conflict resolution capabilities and plenty of options.

    It works very much like Lotus Notes replication, but for file systems.

    --
    The problem with quotes on the internet, is that nobody bothers to check their veracity. -- Abraham Lincoln
  85. Will there be a Linux client? by STFS · · Score: 2, Interesting

    subject says it all.

    --
    You don't think enough... therefore you better not be!
  86. Re:unison -batch + incron by tomtomtom777 · · Score: 1

    unison -batch performs excellent automated synchronization. incron can be used to run unison -batch whenever a file is modified. Together they'll do the job.

  87. Locking, versioning and simultaneous edits by Colin+Smith · · Score: 1

    an this be used for small workgroups who want to work on a file and keep it synced No locking... Files can't be edited simultaneously (without corruption) unless there's some form of locking between the machines doing the editing. Network filesystems all have some form of locking built in.

    With disconnected operation it isn't possible to transmit locks on a file or bits of file between machines so simultaneous edits will not work unless you have a versioning system like CVS or Subversion which can show you the differences between the files and allow you to merge them manually. And that generally only works for plain text files.

    Rsync, Unison and this Dropbox tool are sync tools. No locking and no versioning. Simultaneous edits on a file are a very bad idea in that environment.

    For disconnected operation try something like Subversion, though that's not much use if it's something like a Word document. Alternatively, if you want to use a sync tool, avoid editing the same document on different machines.

    --
    Deleted
    1. Re:Locking, versioning and simultaneous edits by Colin+Smith · · Score: 1

      Oops. Dropbox seems to have versioning built in which is quite nifty, though it looks rather like tortoisesvn in that case.

      --
      Deleted
  88. Windows is easy. by me34point5 · · Score: 1

    After you've set up your share on the server, map a drive to it in My Computer. Now right-click My Documents and go to properties. Click the move button, point it to the mapped drive, and click Ok. You'll be prompted whether or not you want to move existing files to the new location, say yes.

    Once the move is finished, you're ready to set up synchronization. Right-click on My Documents again and click Synchronize. In the lower right hand corner of the window you'll see a button marked Setup, click that. Now check the boxes next to "When I log on to my computer" and "When I log off of my computer" and click ok.

    I do this at work and it has worked flawlessly for me thus far. Good luck.

  89. DB replication failures, too. Write it yourself! by JRHodel · · Score: 1

    Hi:

    Our shop has a large scale client/server system with about 525 RDBMS tables in the backend. The data is by nature complex, and the table structures are as simple as the data allows. We were asked by senior mgt to provide portability for the system, on laptops used by field staff. Since the RDBMS vendor touted their DB synchronization product and their portable DB server capabilities, we thought it would be, well, not simple, but not really difficult in concept.

    Wrong!

    The OS on the laptop changed, rendering the ability to run version X of the DB Lite impossible, which impacted other cross-dependencies... A total nightmare!

    Then, once all those dependencies were resolved, the number of tables needed for field staff (between 125 and 150) proved totally beyond the ability of the DB Sync tools provided by the DB vendor. After many many help tickets showed us that the vendor (think large yacht) had no real intention or ability to fix their sync tool set, we decided to take another tack. ;-)

    We assigned a young coder with a degree but not too much experience, and made him a full time sync tool coder with the senior DBA (also a crack coder) and they've been working on writing a tool to sync laptop data with server data. Now about 98% complete, they tell me.

    We're using flags to control which data set is current, and the logs will allow us to use a utility to work out conflicts that the custom sync tool has problems updating.

    Wish us luck, as I wish everyone confronted by this problem the best of luck! I don't think commercial or open source tools are flexible enough to deal with anything more complex than the most simple set of information and a very static environment. Build your own tool, no one else understands you requirements well enough to help you, really.

    Just my $.02 worth of hard experience on synchronizing complex data for field operations.

    JR

    --
    Think of the Irony!
  90. rsync, and crontab by problah · · Score: 1

    I would writ eup a small bash script to look for the specific IP of your server, say every 15 minutes. If the server IP (private address) is there, perform an rsync, if not, end program.

    Done

  91. Subversion/TortoiseSVN by Colin+Smith · · Score: 1

    Subversion/TortoiseSVN

    It sounds like you are doing multiple edits on files on a filesystem from multiple locations simultaneously. None of the sync tools are designed for that, including Unison. Take a look at configuration management tools like Subversion, CVS, ClearCase, Perforce. Then there's git which I've never played with.

    For simplicity and cross platform support with integration into just about anything: Subversion. Add Tortoise for ease of Windows users use.

    Conflict resolution depends on the data. Anything more than plain text and you may have to look at a commercial system, something like Visual SourceSafe.

    --
    Deleted
  92. fsync? by darkcore · · Score: 1

    Have you tried fsync? Perhaps it could be adapted?
    I do know it is very fast when there are little or no changes.
    http://www.associatedcontent.com/article/298977/ho w_to_synchronize_your_files_between.html

  93. Availl by ruvreve · · Score: 1

    This is meant for WAFS, but if money is no object its about $2500/license and does most of the things it should.

    http://www.availl.com/

    Only transfers deltas, compression, SSL, version history, etc etc...

  94. Groove... by Anonymous Coward · · Score: 0

    Groove is great for this if you are on Windows. In fact you can have as many "nodes" for replication as you like. I use this all the time for syncronising data between my Laptop, Desktop & Home PC. 60 trial and the trial continues to work (without the ability to create new workspaces) after it expires.(See: http://office.microsoft.com/en-us/groove/FX1004876 41033.aspx)

  95. Unison works great for my dual-sync needs by kence · · Score: 1

    Unison works great for me. I use it to synchronize filesystems for two servers in remote locations over an OpenVPN connection. I also use it to sync my laptop up with my desktop (and then use rsync to backup the desktop copy to a remote server). It works well and can be automated although making the automation work securely can be a hassle.

    For the two remote servers I have unison running every half hour via a cron script kicking off unison on server A to an instance of unison listening via sockets on server B. This works well until something kills the connection during a unison session and the unison listening on the socket dies and has to be restarted either manually or by a watchdog. For the laptop/desktop systems I kick off unison manually since I don't need to sync up often.

    If you went the unison socket route on the server it would be fairly easy to set up unison on the laptop to run automatically via a script. The script could trigger when the laptop is able to ping the server do a test rsync for a specific file and if it passes follow up with unison).

    The best part about unison is that in addition to doing two-way syncs is that it works with both Windows and Unix systems for those rare times that I need to work on a Windows box.

  96. rsync, but why not Terminal Services? by BrianGKUAC · · Score: 1

    rsync is great for just this purpose, but the frequency with which this question comes up makes me wonder why so few people use terminal services for working on the road. It's efficient, very functional, and you never have to worry about resynching files, because they're all stored in the same place.

    --
    Menus: Linux=function, Windows=vendor, OS X=as little as possible. Makes a statement, don't you think?
  97. How would you sync in this situation? by pbaer · · Score: 1

    I have a computer with multiple partitions and operating systems, 1 is windows xp the rest are *nix. XP has been patched so it has ext2 read/write support although it ignores *nix permissions. I want to sync my bookmarks between all the partitions so that if I add bm on one partition the change is imported to the other OSs. But I only want to sync positive changes (adding bookmarks, not removing them). Is this doable without using a spare partition for data?

    --
    There are 11 types of people, those who know unary and those who don't.
  98. What about MS Foldershare? by Anonymous Coward · · Score: 0

    I use this religiously to sync between my desktop and laptop - could this work for your scenario? It is free (for now). All you need to do is install the client on any machines that need to sync, then set up your directories. If both machines are online, changes (i.e. changed documents, added or removed) made to one synced directory propagate automatically, but if one is offline it stores the changes until the machine goes back online. It even has a handy web interface where you could access your synced files if you are not on one of your synced machines (like a public kiosk).

  99. synchronex by POLS1OH · · Score: 1

    rsync has a major failure. If you delete a file on your laptop, that file is placed back on the FS at the next sync. Sometimes this is nice. Sometimes it drives you crazy.

    synchronex does a nice job of seeing that a file was deleted on one FS and will delete it on the sync'ing file system as well.

    Generally it has a terrific set of options and control parameters as well.

  100. Third option. by Ayanami+Rei · · Score: 1

    Only use the DNS naming specification for the share when you connect, i.e. \\foobar.example.com\sharename ... it will use CIFS and not use netbios at all.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  101. Don't sync.. by Anonymous Coward · · Score: 0

    It will become a nightmare sooner or later. The real solution is to simply connect remotely to the server and work off of it, keeping your data in one place.

  102. not sync, SiteBar by aap · · Score: 1

    You don't want a sync tool: You want an online bookmark manager. Head to sitebar.org. You can keep your bookmarks on their server, or run your own server if you prefer.

    (just a mostly happy user)

  103. Profile redirection by rodionpunk · · Score: 1

    I'm not a Windows network administrator, but I play one on TV. One way we used to do this is to use Windows Active Directory with domain logons, map a share for their profile (e.g., map H:\ to \\server\username), and then do profile redirection. This basically set up their my documents and desktop to be offline files and folders. They'd connect to network in the morning, and sync. While they were connected to the network, the syncs propagated to the windows server just fine. At the end of the day, they logged off, and it synced again. When they were out of the office, they could log into their laptop and do work "offline", then when they came in later, they'd sync up. The alternative was to set up a VPN connection back to the windows server (Hamachi worked fine), and map the drive to *always* connect. This meant that they were always technically "online", though it would make for slower performance so wasn't really recommended.

  104. iFolder? - Naa try PowerFolder by Anonymous Coward · · Score: 0

    Try PowerFolder (sf.net page)
    It has active development.

  105. unison has a batch mode too by schamarty · · Score: 1

    I dont know why you say Unison needs to be started manually. It has a batch mode that can certainly be used, and it even has a "-repeat NNN" option where it repeats endlessly, pausing every NNN seconds in between.

    [Actually the "-repeat" option can do more, but for your purposes this should do pretty well...]

  106. ViceVersa Pro by pankajc · · Score: 1

    If you are in a Windows Environment check out ViceVersa Pro.

  107. ezUnison by timblack1 · · Score: 1

    But as the poster noted, unison/rsync doesn't easily support automatic synching (that I know of)- you have to kick it off and then deal with any conflicts, etc., manually. I use FolderShare https://www.foldershare.com/ and it does all I want except that it restricts the number and size of the files you can sync. So, I've looked at Unison, which doesn't have those limitations, but also doesn't sync automatically. So, I created ezUnison http://sourceforge.net/projects/ezunison, https://launchpad.net/ezunison/ as an open source project in the hope that I and people like the readers here can make it useful. ezUnison is intended to be a wrapper around Unison to automate the simplest and most common use cases people have for Unison. Currently the code doesn't do much, so hack away on it and let me know when you want to share your code with the project!
  108. I've had good luck with SyncBack by code-dweller · · Score: 1

    I use SyncBack on my XP laptop to keep backups and on occasion to synchronize shared data between more than one machine. Usually it works well and isn't too hard to set up.

    http://www.2brightsparks.com/syncback/syncback-hub .html

  109. Re:rsync (BackupPC) by Anonymous Coward · · Score: 0

    Incidently, BackupPC was written by the now Atheros CEO.

  110. Use powerfolder by Anonymous Coward · · Score: 0

    I used powerfolder successfully in the past.

    http://www.powerfolder.com/