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

Could not back up Media data

asked 2018-10-23 21:31:47 +0300

omichalek gravatar image

updated 2018-10-24 00:16:43 +0300

Backup tool error: "Could not back up Media data"

I would like to update my system, but the backup tool fails upon reaching Media. I tried moving ~/Pictures/Camera and ~/Videos/Camera onto the SD card, but it still stops with error.

The phone is Xperia X

This is the log: sailfish_backup_2018-10-23T17-33-40Z_backup_log.txt

My sd card in [nemo@Sailfish ~]$ mount

/dev/mmcblk1p1 on /run/media/nemo/jollaSD type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/mmcblk1p1 on /opt/alien/run/media/nemo/jollaSD type ext4 (rw,nosuid,nodev,relatime,data=ordered)

Also, I do not understand, why there should be no space! output of df -h: df -h.txt

Please let me know what else to post

edit retag flag offensive close delete

Comments

it's very strange that mkdir failed with no space but copy before succeded:

mkdir: cannot create directory `/home/nemo/.local/share/system/privileged/Backups-tmp/units/sailfish_backup_2018-10-23T17-33-40Z/Media': No space left on device

I wonder if Done: vault-gallery [OK] or Status = UnitScriptFinished did check copy status 0.

Filip K. ( 2018-10-26 09:10:16 +0300 )edit
1

I don't understand what it tries to do in general... Does the backup tool operate inside a bind mount or is it really a directory under ~/ ? It is supposed to backup onto the SD card, would it really create the archive in home and only then move it over to the card? That does not seem optimal to me...

omichalek ( 2018-10-27 03:49:33 +0300 )edit
1

Just ran into the same problem here: My home folder is 71% full, and as the backup application creates an intermediate backup file in /home/nemo/.local/share/system/privileged/Backups-tmp. It copies all the files in there, compresses them and afterwards moves the backup to the destination device. This is a bit unfortunate if the home folder is already quite full. My guess why it is done like that is, because the program can't take the presence of an SD-card for granted.

I worked around this issue, by moving the Backups-tmp folder to the SD-card (which is ext4 formatted BTW) and symlink it back to the privileged folder. One will need to use devel-su for this.

So something along these lines:

# mv /home/nemo/.local/share/system/privileged/Backups-tmp /run/media/nemo/<SD-card UUID>/
# ln -s /run/media/nemo/<SD-card UUID>/Backups-tmp /home/nemo/.local/share/system/privileged/Backups-tmp

Cheers

Tempura San ( 2019-01-18 10:05:56 +0300 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2018-10-25 23:32:39 +0300

I am not sure but Gallery in log will be Pictures/Videos. And Media maybe Music?

So if you've got lots of music data (~5GB) on device: du -xsh /home/nemo/Music then this might be correct.

No idea why temp files are created on device but you do need a SD card for backups!?

edit flag offensive delete publish link more

Comments

oh, so Media is not Photos and Videos? I got it mixed up, but I don't have ~/Music at all

omichalek ( 2018-10-27 03:33:42 +0300 )edit
1

answered 2018-10-27 03:43:57 +0300

omichalek gravatar image

updated 2018-10-27 03:44:33 +0300

Oh I got it! This is the reason it did not work:

[nemo@Sailfish ~]$ ls -l ~/Videos/
lrwxrwxrwx 1 nemo nemo   39 Jun  9 13:50 YTPlayer -> /run/media/nemo/jollaSD/Linked/YTPlayer

I created a symlink and I failed to predict the backup utility would have a problem with it! Thank you @peterleinchen for pointing to me I should look into, well media, not photos and videos :)

edit flag offensive delete publish link more

Comments

Glad you could solve it with my half-knowledged answer :)

peterleinchen ( 2018-10-27 10:55:53 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2018-10-23 21:31:47 +0300

Seen: 288 times

Last updated: Oct 27 '18