I sync my database using icloud. I had a drive failure on my desktop computer and restored using a backup that was months old, my fault for not keeping up with backups. The drive was not actually dead, for a reason I don’t understand it just lost the date, I restored for the old backup, probably 5 months old, which included my DEVONthink database.
When I opened DEVONthink I connected it with the database, which I then realized was older. In a moment of not paying attention, I opened my laptop and when it connected, it overwrote the database on the laptop, destroying the 5 months of notes and work that was there.
I think I have lost the data permanently, but does anyone know if there is a way to recover the overwritten database?
I certainly wish that was the case, I really dropped the ball on backing up. I now wish I had used dropbox to sync, because I think it would have had the ability to go back to a different version. I don’t believe that icloud does that.
Actually, if you spend more time here you’ll here this refrain: Sync is not a backup, neither advocated nor advertised as such.
Also, never put your DEVONthink databases in any cloud-synced location or you could irreparably damage them.
And my last admonition: if you buy a Mac and do not include an external hard drive with that purchase, you haven’t finished buying a Mac. If your data is important to you, getting your backups started from the day you open the box should be a priority. And whether it’s perfect or not, I strongly recommend Time Machine as it’s free, built-in, and as simple as it gets.
It looks like I have gotten lucky and I know I don’t deserve it.
Devonthink apparently had made a copy of the database back in May. Maybe that was because of a syncing conflict? This was the one that was overwritten, as I do have a few different databases.
Now it appears that I only lost a minimal amount of data.
This is an embarrassing situation, as I do have multiple drives and multiple drives for backup. I just got lazy and I procrastinated.
I think I will set up a time machine backup, just because it can save me when I don’t keep due diligence with my backups using Chronosync.
As this is not the forum for it, so I am not looking for an in-depth answer, which form of syncing do you find the most reliable? This is not anything to do with this mistake, but I do want to get away from Apple icloud.
I own a Synology NAS and was thinking of using that. I was formerly using Dropbox, maybe I can use that.
I do keep my databases on an external drive for my desktop and on the internal drive for my laptop, so the actual databases are not on a “cloud-synced” location.
No, you wouldn’t. The whole idea of sync is that you have the same state everywhere. And there are never different versions with sync, because that’s a contradiction to “same state everywhere”. With sync, m there’s only one version, and that’s the last one.
You must get a clear idea of what sync is vs backup. There are a ton of threads on that here, there’s a chapter in the manual.
I’m glad to hear a more pleasant ending to the story. Do note, DEVONthink doesn’t do file backups on its own, so it wouldn’t create a copy of a database without you telling it to or enabling an automation.
As @chrillek hinted at, check out the Getting Started > Building Your Database and A Word About Backups sections in the built-in Help and manual.
Ah, yes, I didn’t think about that. Ok, I do want to get away from using icloud. I am thinking of using my NAS with Webdav. And, of course a separate and reliable backup.
Afaik, DT uses an API to talk to Dropbox. That’s different from storing documents in Dropbox and having them in sync with a local copy.
Also, because the sync data is not a database by itself but some differently structured blob.
Theoretically, it would be possible to restore an old version of sync data but…
This is untested and also unsupported, i.e., if someone does it and it doesn’t work, that’s not something we would be fixing.
I would not try to restore a bit of sync data. As we’ve always said, it’s not your database and documents in there, it’s raw, chunked sync data about your database and documents.
If someone was to try this restoration, they need to restore the entire sync store, not a piece of it. However, they’re also stepping back ALL the sync data so the entire state of the database would change. Again, perhaps theoretically possible, but not anything we’re recommending people try. “You break it; you bought it.”
I’m sure lots of us have done it, we just don’t expect failure to happen in our periods in-between syncing.
If you prefer manual backup, set a recurring reminder in your task manager or your calendar and don’t mark it as complete until you’ve actually done it. Personally I do mine weekly. But I’m also known to go weeks between sessions