We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

copying .local/share to new device

asked 2020-01-22 11:14:43 +0300

simosagi gravatar image

updated 2020-01-22 13:23:47 +0300

When preparing to move to a new SFOS device, I noticed a mix of files under the ~nemo/.local/share directory. Some seems to come straight from the system (e.g. dbus-1), some from SFOS (e.g. jolla-mail), some from the installed apps (harbour-<appname>) plus other directories used by the apps (e.g. Foil Pics saves its keys under foil).</appname>

Is there some rules or best practices on what should and what should not be copied over to the new device, in order to preserve the most of the settings/contents, and that is not already part of the SFOS backup app?

edit retag flag offensive close delete

Comments

Yesterday I was trying to copy only the browser bookmarks from XA2 to X10+ (both on the latest release) and it yielded absolutely nothing. Didn't destroy anything either, yet still - it does not seem that simple.

Kopekenscheich ( 2020-01-22 12:14:50 +0300 )edit
1

@Kopekenscheich

An example of copying from within /home/nemo to /home/nemo;

devel-su cp /home/nemo/.local/share/org.sailfishos/sailfish-browser/bookmarks.json /home/nemo

The above command should have copied bookmarks.json to /home/nemo.

If you want to copy files into the ROOT of the system, change the last part from '/home/nemo' to say '/usr/share/my-app/my-content'

The command given above uses 'cp' to cOpY the file. if it was a folder and not a file you would need to apply '-r' (recursively) meaning it will copy the folder and its contents. ('cp -r')

Spam Hunter ( 2020-01-22 13:11:14 +0300 )edit

@Edz Thanks a lot - will try out and revert!

Edit: Aaaand it worked!

Kopekenscheich ( 2020-01-22 14:28:43 +0300 )edit

There's an app called My Data Transfer for easy migrating to a new device, at OpenRepos.

eson ( 2020-01-25 14:17:13 +0300 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2020-01-25 12:35:47 +0300

hsjpekka gravatar image

updated 2020-01-25 12:37:41 +0300

The default location for an application to save it's data is in .local/share/app/app/QML/OfflineStorage/Databases/, if the app uses QML and QtQuick.LocalStorage. So copying .local/share makes sense from that point of view.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2020-01-22 11:14:43 +0300

Seen: 256 times

Last updated: Jan 25 '20