What is the safest way to migrate a database with 16k items, among which 8k replicants. into an encrypted database?
Here is a manual method for doing this…
- Select the database, you’re going to migrate and choose File > Database Propeties. Note the total size of the items in the database. This is critical to know.
- In DEVONthink, make a new encrypted database with the same name as the database you’re migrating.
Create it with a reasonable anticipated maximum size with some room for unanticipated growth. For example, if the data is 1GB and you anticipate the database will become 2GB, make it 3 or 4GB. If you think it will be 10GB, make it 12 to 15GB, etc…
- Quit DEVONthink.
- Change the extension of the new database from .dtSparse to .sparseimage.
- Double-click to mount it, then select the mounted volume in the Finder.
- Locate the database to migrate in the Finder. Drag the .dtBase2 file into the mounted volume, replacing the newer .dtBase2 file.
- Eject the volume.
- Change the extension back to .dtSparse and double-click it to open it in DEVONthink.
And here is a more automatic way to do it, assuming you’re syncing…
- Select the location you’re syncing the database to, Control-click it, and choose Verify Location Thoroughly while holding the Option key. Check Window > Log to ensure it verifies successfully.
- If it does, select the database in the Navigate sidebar, and choose File > Export > Database Archive.
- Select File > Database Properties and not the total size of the items in the database. This is critical to know.
- After the database has been successfully archived, select File > Delete Database, okaying the deletion. (And yes, this is a required step.)
- Select the sync location again, and look for the database in the Remote section of the databases list.
- Select the database, then choose Import Encrypted Database from the Action button (gear icon).
- Make sure to give it an appropriate size, again with room for reasonable future expansion, as discussed above. Set the encryption key and either note it or remember it – there is no recovery if you lose it – and ideally, save it in the Databases directory in your home directory.
Manual way worked like a charm. Thank you!
You’re very welcome