Ask / Submit
65

Back up all apps and settings, not just core Jolla apps.

asked 2014-01-07 16:33:57 +0200

westy gravatar image

updated 2017-10-17 21:19:08 +0200

misc11 gravatar image

It would be good if there were a native tool to enable a full back up of apps and settings - I'll understand if bog standard Android apps aren't backed up - but anything that is available from the Jolla store (and surely plus the Yondex market apps as well?) should be able to be included in the backup. Currently you only appear to have the option to select the initial core apps that were installed as part of the original set up process.

update: still no proper backup in SFOSv2.0.0.10

update: still no proper backup in SFOSv2.0.2.51

update: still no proper backup in SFOSv2.1.0.11

update: still no proper backup in SFOSv2.1.2.3

edit retag flag offensive close delete

Comments

2

and backup of notes application

michdeskunk ( 2014-01-18 16:34:19 +0200 )edit
2

Yes, that ist important to have. Other 3rd-party apps could be backuped through the system backup, like database of password managers or bookmarklists or game high scores. The user should be able to include or not other 3rd-party apps into the system backup like the Jolla apps.

axaq ( 2014-01-24 01:31:45 +0200 )edit

It seems there are the same technical restrictions (missing privileges) today to implement/use system backup for 3rd-party apps as with integration into settings.

axaq ( 2014-01-24 01:35:53 +0200 )edit
9

A backup should be able to include all data stored on the phone - including files you put there, photos, downloads,... A real backup means for me: after restore everything is exactly like it was before. Such an option would be perfect.

codeboss ( 2014-01-31 09:54:38 +0200 )edit
5

Just wanted to add: the backup should, of course, also include apps installed from other sources, not only from Jolla store.

codeboss ( 2014-01-31 10:00:01 +0200 )edit

1 Answer

Sort by » oldest newest most voted
10

answered 2015-11-03 18:01:15 +0200

drcouzelis gravatar image

Here is how I make a complete backup of my settings and in-app data. It's a solution that requires some technical knowledge and would never be included in an app store, but it works.

I made a script called "create-backup" that I keep in "/home/nemo/bin":

# A script to backup all settings and in-app data in Sailfish OS
# Run as the regular "nemo" user (NOT "devel-su")
# The backup is saved to "/home/nemo/sdcard/Backup"
# Create that directory or change the destination

# Begin the backup process

# Start in the user's home directory 
cd /home/nemo

# Create a unique filename based on the current date and time
# For example: "backup-20150616-125634.tar.gz"
FILENAME=backup-$(date +"%Y%m%d-%H%M%S").tar.gz

# Create the backup
# The "time" command will show how long the process took when it finishes
# "c" to "create" a packaged file
# "z" to "zip" (gzip) the file
# "--exclude" is used to skip directories that you either don't have access to
#             or are automatically recreated (add or remove lines as you see fit)
# ".??*" is the list of files that are being backed up - this is a little "trick"
#        that means "all files that begin with a period"
time tar \
    -cz \
    -f /home/nemo/sdcard/Backup/${FILENAME} \
    --exclude=".cache" \
    --exclude="Cache" \
    --exclude=".qmf" \
    --exclude=".config/signond" \
    --exclude=".local/share/system/privileged" \
    .??*

# Show a confirmation if the backup was successful
if [ $? -eq ]; then
    echo
    echo "File saved to ~/sdcard/Backup :"
    echo
    cd /home/nemo/sdcard/Backup
    ls -lh ${FILENAME}
    echo
fi

The script can be run any time, either from the Terminal application or through SSH. It only takes a minute or so to run and creates backups that are about 30 MB in size. I have used this backup to successfully wipe and restore the data on my phone. To restore the settings, I just used SSH to copy the files back onto the phone.

I also use the built-in backup software, but also create these personal backups every so often to make sure I really grab everything, just in case.

edit flag offensive delete publish link more

Comments

5

I just run "rsync -a" of entire /home/ to my server from a cronscript every night.

You could say it is a brute-force method but this way I get everything backed up just in case I botch something. It just takes from some seconds to maybe a minute in maximum over WLAN and only slightly longer over 3G.

juiceme ( 2015-11-03 18:42:52 +0200 )edit
1

That is an OUTSTANDING idea! Easy to automate, incredibly fast, and I just ADORE rsync. Thank you! :)

drcouzelis ( 2015-11-03 19:39:02 +0200 )edit

No problem, glad to be of help. :)

Luckily rsync is part of the OS, you just need to install a cron daemon, for example my version of basic vixie cron from here: http://swagman.org/juice/vixie-cron-3.0pl1-1.src.rpm

juiceme ( 2015-11-03 19:50:17 +0200 )edit
3

@juiceme: I'd add your solution as a proper answer :)

Joril ( 2015-11-16 22:09:29 +0200 )edit
3

@Joril@juiceme ...me to! ;) And there's a very good app to control cron...

eson ( 2016-09-08 06:33:30 +0200 )edit
Login/Signup to Answer

Question tools

Follow
18 followers

Stats

Asked: 2014-01-07 16:33:57 +0200

Seen: 1,218 times

Last updated: Oct 17 '17