Discussion:
User profile backup
j***@apache.org
2018-05-03 14:47:14 UTC
Permalink
Hi.

I have a profile (jani.xml) that are “Cloud storage default file”, it seems to contain all my dives etc (made a test with a local copy).

Am I missing something, or is it not possible to make a backup of the “Cloud storage default file” ?
(As developer I experiment some, and would like to secure my dives :-) )

rgds
Jan I.
Miika Turkia
2018-05-03 17:25:08 UTC
Permalink
Hi.
I have a profile (jani.xml) that are “Cloud storage default file”, it
seems to contain all my dives etc (made a test with a local copy).
Am I missing something, or is it not possible to make a backup of the
“Cloud storage default file” ?
Sounds like a bit of mis-understanding (either you or me :D). jani.xml
sounds like it is our old log storage format, in XML. This is only a local
file that can be copied anyway you like.

Cloud storage is a git repository that is stored on your local disk and in
our cloud server (if you have synced it to cloud). The cloud storage can be
managed the same way git repositories are. I.e. I have added another remote
to my local NAS to have it there as well. But as long as you do not delete
or corrupt the git information, you can checkout different versions and
manipulate it quite freely.

If you have chosen "local default file" in preferences, then the XML log is
saved (or it can also be git repository with special syntax for the local
file). If you have selected "Cloud storage default file", Subsurface should
use local git repository that is also pushed to our cloud server. It might
be that you are actually using the git storage but are looking at older XML
file. (I am not sure where the local git storage is on Mac, but it is
/home/<username>/.subsurface/cloudstorage/<hash>/ in Linux.)

HTH,
miika
j***@apache.org
2018-05-03 18:47:39 UTC
Permalink
Cloud storage is a git repository that is stored on your local disk and in our cloud server (if you have synced it to cloud). The cloud storage can be managed the same way git repositories are. I.e. I have added another remote to my local NAS to have it there as well. But as long as you do not delete or corrupt the git information, you can checkout different versions and manipulate it quite freely.
OK I did not see that. That is actually a much better solution, now I will go hunting on my Mac to find the repo.
If you have chosen "local default file" in preferences, then the XML log is saved (or it can also be git repository with special syntax for the local file). If you have selected "Cloud storage default file", Subsurface should use local git repository that is also pushed to our cloud server. It might be that you are actually using the git storage but are looking at older XML file. (I am not sure where the local git storage is on Mac, but it is /home/<username>/.subsurface/cloudstorage/<hash>/ in Linux.)
There are no .subsurface and no directory “cloudstorage” on my Mac (searched from root with sudo).

Seems I have to dig into the code, but thanks for a good explanation.

rgds
Jan I
j***@apache.org
2018-05-03 18:54:45 UTC
Permalink
Sorry discard my previous mail.

Found it in <home>/Library/Application Support/Subsurface/cloudstorage

(Did a “find 
 > /dev/null, and not 2> /dev/null), time to get a strong tea !!

rgds
Jan I.
Robert Helling
2018-05-03 19:28:22 UTC
Permalink
Jani,
Post by j***@apache.org
Found it in <home>/Library/Application Support/Subsurface/cloudstorage
(Did a “find 
 > /dev/null, and not 2> /dev/null), time to get a strong tea !!
Subsurface would have told you about it if you asked it:

src/subsurface/build/Subsurface.app/Contents/MacOS/Subsurface -v

gives me (amongst many other things)

Plugins Directory: QDir( "/Users/Helling/src/subsurface/build" , nameFilters = { "*" }, QDir::SortFlags( Name | IgnoreCase ) , QDir::Filters( Dirs|Files|Drives|AllEntries ) )
cloud URL set as "https://cloud.subsurface-divelog.org//git/***@atdotde.de[***@atdotde.de]"
loading dive data from ("https://cloud.subsurface-divelog.org//git/***@atdotde.de[***@atdotde.de]")

[
]

File locations:

cloud URL set as "https://cloud.subsurface-divelog.org//git/***@atdotde.de[***@atdotde.de]"
Local git storage: /Users/Helling/Library/Application Support/Subsurface/cloudstorage/c72433d1ae87cbe0
Cloud URL: https://cloud.subsurface-divelog.org//git/***@atdotde.de[***@atdotde.de]
Image hashes: /Users/Helling/Library/Application Support/Subsurface/hashes
Local picture directory: /Users/Helling/Library/Application Support/Subsurface/picturedata/

Best
Robert
Jan Iversen
2018-05-03 19:54:24 UTC
Permalink
Sent from my iPad
Post by Robert Helling
Jani,
Post by j***@apache.org
Found it in <home>/Library/Application Support/Subsurface/cloudstorage
(Did a “find 
 > /dev/null, and not 2> /dev/null), time to get a strong tea !!
src/subsurface/build/Subsurface.app/Contents/MacOS/Subsurface -v
Now why did I not think of that :-(

thanks for that hint
rgds
jan i
Post by Robert Helling
gives me (amongst many other things)
Plugins Directory: QDir( "/Users/Helling/src/subsurface/build" , nameFilters = { "*" }, QDir::SortFlags( Name | IgnoreCase ) , QDir::Filters( Dirs|Files|Drives|AllEntries ) )
[
]
Local git storage: /Users/Helling/Library/Application Support/Subsurface/cloudstorage/c72433d1ae87cbe0
Image hashes: /Users/Helling/Library/Application Support/Subsurface/hashes
Local picture directory: /Users/Helling/Library/Application Support/Subsurface/picturedata/
Best
Robert
Loading...