The Following 4 Users Say Thank You to juiceme For This Useful Post: | ||
|
2017-11-06
, 23:28
|
Posts: 22 |
Thanked: 18 times |
Joined on Oct 2012
|
#12
|
I do not know about another device but I have definitely restored my contacts using instructions here after a factory reset, having nothing but the contacts.db file.
The key might be to copy the file whilst the services that would otherwise use it are not running. Which means in Recovery Mode. Then reboot and you are in the game.
As I said, I have not tried it between devices but I find it hard to believe that it would be much different.
|
2019-04-07
, 07:55
|
Posts: 4 |
Thanked: 5 times |
Joined on Jan 2016
|
#13
|
Unless I really did something totally wrong, I have unsuccessfully tried this thrice in the past.
/home/jolla/.local/share/system/Contacts/qtcontacts-sqlite/*
Tags |
contacts, sailfish, sqlite |
|
So, basically I have 3 different users for backup on my server, "jolla", "nexus" and "xperia". For each I have set up login via ssh keys, so I just need to do for example "rsync -av /home/nemo/ jolla@myserver.mydomain:/home/jolla/" on my Jolla sbj1 to backup it.
Then, to copy for example the contacts from Jolla to Xperia, I just copy content of /home/jolla/.local/share/system/Contacts/qtcontacts-sqlite/* and /home/jolla/.local/share/system/privileged/Contacts/qtcontacts-sqlite/* to the appropriate places under /home/xperia/ and do "rsync -av xperia@myserver.mydomain:/home/xperia/ /home/nemo/" on the Xperia...
One thing to remember; by default your nemo account does not have read/write access to the directories owned by the "priviliged" account. To go around this without needing to devel-su yourself you need to add the nemo user to the priviliged group.
This might be seen as a potential security weakening but the effects are negilible as long as you have strong password for ssh and always use automatic device locking to avoid people messing up with your device...