Restoring Additional Vaults from Library Folder Backup
I have my main vault synced via Dropbox and two additional vaults that I hadn't gotten around to syncing. I had to restore my Mac from a clone backup and after launching 1Password, Dropbox synced the main vault automatically. However, when I went to move the two additional vaults, their .agilekeychain files are nowhere to be found in the Library. The backup is complete, and I checked my other two backups and they also have no keychain files.
Where are these stored and how do I move them back into 1Password?
Additional Note: I have made a lot of changes to the primary vault in the meantime. These changes must be preserved.
1Password Version: 5.3, MAS
Extension Version: Not Provided
OS Version: 10.10.4
Sync Type: Dropbox
Comments
-
Hi @jfm429,
I'm sorry to hear that you've been having trouble here, and I'll do what I can to help get you back up and running as soon as possible.
I'll start with a brief explanation on how 1Password stores your data. Your entire database (all vaults included) is stored in an .sqlite file inside of your Library. (For the Mac App Store version of 1Password, your datafile would be stored here: ~/Library/Containers/2BUA8C4S2C.com.agilebits.onepassword-osx-helper/Data/Library/Data/OnePassword.sqlite) When you choose to sync a vault, a copy of that vault's data is made (usually in .agilekeychain format) and stored in the appropriate location. So you won't find any .agilekeychain files for your secondary vaults if they haven't been synced, but the data should still be present in your cloned backup. Since you've made changes to your primary vault that we want to save, we'll need to do a bit of fancy footwork when restoring your 1Password data.
Let's try this:
1 .First things first, let's run a fresh backup of your database. (File > Backup).
2. Now, let's restore to an older backup that has your secondary vaults. (File > Restore and select a backup from before restoring your Mac.) You should see all of your vaults in 1Password now.
3. Export each of the secondary vaults as .1pif files and save to your desktop. (File > Export > All Items).
4. Restore back to latest backup that we created in Step 1.
5. Recreate secondary vaults & import their 1pif files. (File > Import). Please note that the .1pif file is unencrypted, so once you have your data imported properly, please ensure that these files are securely deleted.
6. Once we're all sorted out, you may want to sync the secondary vaults to Dropbox, just in case you run into a similar issue again.Please let me know if you hit any snags in this process!
0 -
Thanks, that worked. I'm not thrilled that all the vaults are contained in a monolithic database file (that makes it impossible to recreate the Library state by moving the individual vaults around as I normally do in a migration) but at least there is a way to do it.
0 -
Hi @jfm429,
I'm so glad to hear that you're all sorted out!
I'm not thrilled that all the vaults are contained in a monolithic database file (that makes it impossible to recreate the Library state by moving the individual vaults around as I normally do in a migration).
If you find yourself regularly performing migrations and needing those .agilekeychain files, you could sync your secondary vaults to Dropbox (as I suggested earlier.) An alternative is to use Folder Sync to simply create the .agilekeychain files for your secondary vaults in a folder of your choosing prior to the migration.
But in general, since you're backing up your drive before performing these migrations, 1Password should be capable of detecting that .sqlite file and restoring all of your vaults in one, simple shot. The trick then would be to ensure that 1Password is looking at the data locally on your drive instead of detecting that keychain in Dropbox. If you're in a situation again where you're looking to perform a migration, please let us know - we'd be happy to walk you through the process. :)
0