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

Where are the backups? [duplicate]

asked 2014-05-07 21:41:15 +0200

WhyNotHugo gravatar image

updated 2014-06-07 09:35:22 +0200

dez gravatar image

I created a new backup via the System settings> Backup, but there seems to be no indication of where it was placed. There seems to be no indication of it in ~, and the utility itself offers no way of exporting it (eg: to a file, via email, rsync, anything).

The only option is to copy it to a card, which seems stupid, since it means that I'd have to buy a memory card, a card reader for my pc, and physically back and forth move it every time I made a backup (we have wireless networks, internet, etc, remember?).

So, where's my backup?

edit retag flag offensive reopen delete

The question has been closed for the following reason "duplicate question" by chemist
close date 2014-05-08 03:01:43.611623

2 Answers

Sort by » oldest newest most voted
4

answered 2014-05-07 21:47:52 +0200

Alex gravatar image

updated 2014-05-07 21:48:39 +0200

The backups are stored at /home/nemo/.vault and you are able to copy it to a computer via (Win)Scp but prefered a Linux pc because of permissions. This also was already discussed here , here and also here.

edit flag offensive delete publish link more

Comments

I copied the files just fine copy-pasting throught the window manager (didn't need winscp, thankfully). I also noticed that the backups are a git repository (very neat!), so it's also possible to git-clone it and just git-pull (from another computer) after running new backups.

WhyNotHugo ( 2014-05-08 00:11:59 +0200 )edit
1

@hobarrera if you just copied it without taking care of permissions and owner you wont be able to recover a backup (at least not otf), there is an option to save them to sdcard in settings/backup.

chemist ( 2014-05-08 03:01:10 +0200 )edit

Oh, I was unaware if the permissions issue. I guess using git as mentioned works around that. rsync would work gine too.

WhyNotHugo ( 2014-05-08 03:57:45 +0200 )edit

Easiest backup is to back it up onto your sdcard but that does not prevent a loss of your phone. I pull most of the FS with a rsync backup, I need to do that as root as not even nemo is allowed to read/write all of the .vault dir. If you are going the git way you probably should check if it is everything nemo sees or if it is really everything!

chemist ( 2014-05-08 13:16:14 +0200 )edit

Regrettably, I don't have SD cards, and I don't like the idea of purchasing additional hardware just for backups. Neither do I like the idea of having to deal with having to open the phone and adding/removing it every time I want to make a backup. The less of a hastle backups are, the more often one tends to make them. Thanks for pointing last item out; it seems that .git/blob isn't copied over by git, so those need to be pulled separately.

WhyNotHugo ( 2014-05-08 13:52:09 +0200 )edit
3

answered 2014-05-08 00:14:38 +0200

WhyNotHugo gravatar image

Why the first answer is correct, I'm just posting this as a nice extra: The backups are a git repository, so you can clone it onto your desktop:

git clone nemo@IP_OF_JOLLA_DEVICE:/home/nemo/.vault /path/to/where/you/save/backups/jolla-backpups

And later on just run git pull to update the copy of the backups. An added bonus is that integrity checks are done by git when pulling, so there's far less chance of corrupting old backups (which could happen with rsync).

edit flag offensive delete publish link more

Comments

2

It is not enough, you should also rsync .git/blobs

dez ( 2014-05-08 10:02:06 +0200 )edit

I see I'm missing those files. What's in .git/blobs and why does git-clone not copy that?

WhyNotHugo ( 2014-05-08 13:49:19 +0200 )edit
2

BLOBs are there :) Big large binary objects :) Git is not intended to handle 'em. Read http://stackoverflow.com/a/19494211 clone is cloning only main object storage.

dez ( 2014-05-09 12:04:27 +0200 )edit

Question tools

Follow
5 followers

Stats

Asked: 2014-05-07 21:41:15 +0200

Seen: 400 times

Last updated: May 08 '14