View Full Version : How to replace OS X OF with iPhone db?
2009-09-15, 05:34 PM
I created an archive file, and didn't want anything moved by OF (I prefer to manually move items), so I choose archive before 1/1/06 (earlier than any data I have), but ended up with actions put in the archive anyway. Unfortunately I don't have a recent enough backup on my computer, and don't want to have to go through the painstaking process of manually moving things from the archive into just the right location. I have a current copy of my OF in my iPhone -- how can I overwrite the OS X OF with that?
(sent in as a ticket just now)
2009-09-15, 05:48 PM
Assuming you are syncing via MobileMe, the easiest approach would be to remove the database from the MobileMe server with the Finder (rename it rather than deleting it, just to be safe), then force the iPhone to do a sync. After that, the desktop copy should detect that the server copy is newer and offer to replace your local copy and start syncing. Take it up on its offer.
2009-09-15, 06:05 PM
I'm Bonjour syncing.
2009-09-15, 06:53 PM
It's a little trickier with Bonjour. Quit OmniFocus on both devices (hopefully it hasn't gotten a chance to step on the good copy of the database on the iPhone!). Then go to the Library/Application Support/OmniFocus folder in your home directory. Rename OmniFocus.ofocus to Old OmniFocus.ofocus. Now connect to the Syncronization Data/Documents folder in that directory and do the same with the copy of OmniFocus.ofocus you find there. Having done this, you can restart OmniFocus on the desktop. It will give you the default new database, which is okay. Now launch OmniFocus on the iPhone and force a sync. It will notice that the two databases don't match and ask whether you want to keep the device database or the sync database. You want to be sure to answer Keep Device Database! Now have the desktop do a sync, which should get you the "Replace database and start syncing?" dialog. Answer affirmatively and you should be done.
Might not be a bad idea to plug your iPhone in with the cable and do a sync/backup before this whole procedure, just as a bit of insurance.
2009-09-15, 07:21 PM
I humbly submit that I did not see (did not navigate to) the actual relevant backups. Your post is *most* appreciated, though!
The saga continues...
I'm having a hard time making heads and tails of this. I'm using OF (OS X) (and iPhone OF, but I don't think that has any bearing).
At 6:17PM, 9/15/2009, I created my archive file (as explained in my original email).
When I chose File > Revert to Database Backup…, I was presented with a dialog showing:
I didn't see any relevant backups there. Turns out, I think, that folder is just the last one I visited from that dialog, so it was remembered.
Later, I discovered that my backups are in ~/Documents/OmniFocus Backups
OK, good enough. Then I chose "Revert to Database Backup…" and selected:
OmniFocus 2009-09-15 181757 before archive.ofocus-backup (which was 5:58pm 9/15/2009)
… which is just prior to creating the archive.
However, the resultant OF file, which has a project "Studio is built", does *not* contain any completed actions (which show up in my archive file), *except* one completed Aug 4, 2009 1:34 PM. NOTE: in my current OF file, with the project selected, I have "Any Status" selected, so I'm not filtering out completed actions (and "Any Duration" and "Any Flag State").
I then reverted to the 5:58pm file ("OmniFocus 2009-09-15 175852.ofocus-backup") *not* marked as "before archive.ofocus-backup"; same results.
I then reverted to today's (9/15/2009) 4:58am database: "OmniFocus 2009-09-15 045827.ofocus-backup", yet still, the completed tasks are not showing. Since I had no archive file at all, at that point in time, the only thing that I can think of is that, perhaps, there is some kind of automatic archiving going on -- immediately upon opening an older file, pre-archive. When I choose "Move Old Data to Archive" (just to see what's going on; not executing the archiving), the date shown is: "8/1/09". But I would expect, that when restoring a copy of my OF db that had never been archived, that all items would appear. Any help is greatly appreciated.
p.s. ticket to Omni updated
2009-09-15, 08:30 PM
At this point, I'm not confident that I fully understand the situation you're in, so rather than risk making it worse, I'm going to say you should call up Omni tomorrow at 10AM west coast time (1-800-315-6664) and have them walk you through it. Sorry I can't be of more help!
2009-09-15, 08:35 PM
OK, I think I've gotten to the heart of the matter (sorry, Don Henley ;) ).
After restoring, there is a second dialog which I glossed over and clicked OK, which replaces the database with the 'server' version. When I later clicked 'cancel', I appeared to end up with the correct data. Anyone thinking otherwise speak now, or forever hold your peace!
p.s. Thanks, whpalmer4, for the great advise and encouragement!
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.