The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus 1 for Mac
FAQ Members List Calendar Today's Posts

 
Sync OminFocus between machines Thread Tools Search this Thread Display Modes
I recall some discussion at the after hours event in San Fran during WWDC about keeping instances of OmniFocus on two machines (like home and work) in sync. I thought I heard someone mention that they were using WebDav to do this. Can anyone explain how I might be able to do this. Basically I want to be able to open up OF at either machine and have it be in sync.
 
My main computer is a desktop, and of course I have a laptop to lug around when working remotely. So I would love if this gets added to OF for release!

.angie
 
I synchronize between my desktop and my laptop via synk. You have to synchronize the folder home/Library/Application Support/OmniFocus
 
Quote:
Originally Posted by lexlimo View Post
I recall some discussion at the after hours event in San Fran during WWDC about keeping instances of OmniFocus on two machines (like home and work) in sync. I thought I heard someone mention that they were using WebDav to do this. Can anyone explain how I might be able to do this. Basically I want to be able to open up OF at either machine and have it be in sync.
I use .Mac for this. You need to use the shell to symlink the OF document (which is really a directory) to the location you wish to use on the iDisk; it works reasonably well for me.

The only tricky thing is that you're syncing a directory, not a file. I think that there were some issues with a build within the past week where there was a "backup" copy of the directory at one point, and the link was being overwritten by OF as it re-created a file. But it's been fine the past several days.

(Happy to amplify this if someone wants a walk-through...)

_KMP
 
Quote:
Originally Posted by kmp View Post
I use .Mac for this. You need to use the shell to symlink the OF document (which is really a directory) to the location you wish to use on the iDisk; it works reasonably well for me.

The only tricky thing is that you're syncing a directory, not a file. I think that there were some issues with a build within the past week where there was a "backup" copy of the directory at one point, and the link was being overwritten by OF as it re-created a file. But it's been fine the past several days.

(Happy to amplify this if someone wants a walk-through...)

_KMP
I would be very interested in learning how you are syncing your laptop desktop. Please amplify. Thanks.

Scott
 
+1 for step by step amplification.

Also, +1 for OmniGroup building in an AppleScript that does this for you.

BZ
 
+1 more for step-by-step amplification.

+1 for automation.
 
I'm glad I'm not the only one interested in this feature. I'm wondering though, if it doesn't make sense to be able to simply be able to set the location of the OF file (or directory of xml files as it appears to be) in the preferences. So one could set it to be a WebDav mount or something? As I type that it seems like a bad idea but it would at least be better than setting up symlinks in the shell one would think.
 
Quote:
Originally Posted by Scott Betz View Post
I would be very interested in learning how you are syncing your laptop desktop. Please amplify. Thanks.

Scott
Sorry for the delay. I've been busy (that's the point, no?).

I hope this is the right level of detail for you. This is what works for me, and so I can't warrant that it will work for anyone else, but here's how I think I understand the process.

You need to use the shell to do this (it was explained that you need to use "symbolic links", which are very similar to aliases but are a native part of the file system implementation).

Also, I'm set up with my iDisk "cached" on my machines, meaning that a local copy is updated, and then iSync or Sync Services goes out and updates the copy on the iDisk server. This is enabled up by setting "iDisk Syncing On" in the .Mac preferences pane; I have mine set to sync automatically. You'll want to ensure that your iDisk is synced when you move to another machine; you can do this by clicking on the circular-arrows-chasing-each-other icon on the iDisk icon in a Finder window. If you have a Finder window open to the iDisk or a subfolder, the sync status is displayed at the bottom of that window.

You'll be Unhappy if you try to work on Machine B if Machine A hasn't synced the files, and Machine B hasn't then picked up all of those changes... and, BTW, for a more enjoyable experience consider putting your "Back up database..." files there, too, just in case. And, of course, you don't want to try this while OF is actually running...

Still with me?

Here we go.
  1. Locate the local copy of your OmniFocus data on your computer, which is likely in your home directory in the Library/Application Support/OmniFocus directory. If your username is "bob", then the full path to this is /Users/bob/Library/Application Support/OmniFocus. If you look at this file in the finder, you'll see the OmniFocus data file. However, this is actually a Mac OS X "Package" which the shell sees as a directory, and is called "OmniFocus.ofocus". You're going to copy this file to a directory on your iDisk, and then set up a symbolic link (short name: "symlink") to point to it, exactly as if you were setting up an alias.
  2. You need to copy the file to your iDisk (doing so from the Finder is fine); I put mine in the Documents folder in a folder called OmniFocus. (It's good to be really obvious about this - because you're probably going to have to figure it out again later!). You need to also figure out the pathname for this file (which is, again, actually a directory as far as the shell and filesystem is concerned). Again, in my case, the iDisk is mounted on my Mac as /Volumes/iDisk; but my machine at home has it mounted differently - you may need to do some hunting, but it's surely under /Volumes. So, again, putting everything together, I now have the OmniFocus [data package] on my iDisk, at /Volumes/iDisk/Documents/OmniFocus/OmniFocus.ofocus .
  3. Finally, you have two copies of the file, but you need to remove the local copy and create a symlink. You can trash the file from the Finder, and then, in the shell, create the symlink. The command is a bit tricky - I can never remember which parameter is first. The general form of the command is ln -s destination pointer - so, if you are "bob", and you are "in" the right directory (/Users/bob/Library/Application Support/OmniFocus/), you might issue this command: ln -s /Volumes/iDisk/Documents/OmniFocus/OmniFocus.ofocus/ OmniFocus.ofocus - which would create the link for you - the link OmniFocus.ofocus in that directory "points" to the package on the iDisk, but the application just sees "OmniFocus.ofocus" as a directory it's going to use for its data.

If you look at that folder in the Finder, you should see what looks like an alias - but it's actually a symlink. If you use the ls command, as in ls -l you'll see the pointer/link indicated. The next time you start up OmniFocus, you should see the lock file appear on your iDisk: OmniFocus.ofocus.lock, which is the result of the standard practice of leaving a "sentinel" file so the application can tell that either another copy of itself is running, or else the application crashed, and some recovery of the data in the file may be in order.

And, you'll want to do this on whatever other computer(s) you have OF installed on. Obviously, you need to figure out which OF file is the "master" and propagate the links as necessary. One of the things that applications that use sync services to manage changes do is to read files or parts of files and make decisions - or allow sync services to prompt the end-user to make decisions - about which record or data point should be kept. OF doesn't do this, at least now.

Finally, remember, that file is really a package - so the iDisk sync services will see a whole bunch of files with very long and seemingly random names "inside" of it to sync. Just make sure that the sync has completed successfully before making any assumptions about using the file elsewhere, and you should be okay.

I hope this helps - but I'll try to respond more quickly if there are more questions. And remember - back up, back up, back up, not only before you try something like this, but remember that OF is Alpha software...
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Ominfocus keeps moving to Desktop 1 kklein OmniFocus 1 for Mac 12 2012-05-28 06:25 PM
ominfocus web interface prompting for username? david@knapp.org OmniFocus 1 for Mac 1 2009-04-06 12:28 AM
WebDav Sync works between machines but not iPhone v.bampton Other WebDAV 1 2008-09-17 05:19 AM
OminFocus crashes when started jmmitchell OmniFocus for iPhone 8 2008-07-17 11:11 PM
Can Backup/Revert Database be used to sync multiple machines? Anthony.Calzadilla OmniFocus 1 for Mac 2 2007-07-20 09:27 AM


All times are GMT -8. The time now is 11:05 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.