Lost Dives Stored in Cloud

81 views
Skip to first unread message

Harrison Marks

unread,
Jul 18, 2020, 1:37:54 AM7/18/20
to Subsurface Divelog
I logged in successfully from the iOS app and saw no dives in my dive log, then after freaking out a moment, I logged in to find that dives had been wiped when accessing both via the web interface and via macOS app. I then continued to freak out... I have backups, but they are not as recent as I would like.

Query:                        Is there a redundant cloud back up one can restore from?

Feature Request:      Can there be a local backup in addition to the cloud sync backup.

Using the iOS app.
iOS 13.5.1
Using the Mac application version 4.9.6
macOS Catalina 10.15.5

Thanks,

Harrison

Miika Turkia

unread,
Jul 18, 2020, 2:27:39 AM7/18/20
to Subsurface Divelog
 The cloud storage is implemented in using git as backend. That is a version control system that includes every operation performed on your log, and it is possible to go back in time. However, Subsurface does not have user interface for this. Both the mobile and the desktop versions of Subsurface have a local cache of this repository, and in desktop version it is also possible to export the dive log in XML format, if you want to have an extra backup of the log. If you are not familiar with git, you should send an email to "dirk (at) hohndel.org" from the email address you have associated with your log, and give him explicit permission to access your log on the cloud server, explaining the situation and telling what state you wish to end up to.

However, if you are familiar with git, you can do the magic yourself locally and push the fix to the cloud. I just don't know what path the cloud log is stored locally. If you start Subsurface from command line with -v option, it should print out the local path. You might need to checkout a branch named as your email address, and then you can e.g. revert the commit that overwrote the log with empty data.

jimbodude

unread,
Jul 20, 2020, 8:27:21 AM7/20/20
to Subsurface Divelog
However, if you are familiar with git, you can do the magic yourself locally and push the fix to the cloud. I just don't know what path the cloud log is stored locally. If you start Subsurface from command line with -v option, it should print out the local path. You might need to checkout a branch named as your email address, and then you can e.g. revert the commit that overwrote the log with empty data.
 
On Mac, the git repo that backs cloud storage is located at:
~/Library/Application\ Support/Subsurface/cloudstorage/ 

(I just had to figure that out to fix some issues in my wife's dive log...)

Harrison Marks

unread,
Jul 20, 2020, 10:13:14 AM7/20/20
to Subsurface Divelog
Thanks! The fix required Dirk's assistance, but it's odd as I when I found local backup (at the location Jim suggested later in the chain) it was blank.  

The temporary solution I have implemented is simply copying that directory every few days and keeping several backups.

Thank you all for your help!

Robert C. Helling

unread,
Jul 20, 2020, 12:30:47 PM7/20/20
to Subsurface Divelog


Am Montag, 20. Juli 2020 16:13:14 UTC+2 schrieb Harrison Marks:
Thanks! The fix required Dirk's assistance, but it's odd as I when I found local backup (at the location Jim suggested later in the chain) it was blank.  

The temporary solution I have implemented is simply copying that directory every few days and keeping several backups.


The directory looks empty, but it isn't. All the meet is in a hidden subdirectory .git and you can conjure it up by opening a terminal window, go to that directory and run

git checkout your...@example.com

That will create all files in a human readable form.

And as Mikka said, the storage is version controlled so all past states are there as well. So there is no point in copying everything at regular intervals. It's all there. 
Reply all
Reply to author
Forward
0 new messages