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

Backup not working [answered]

asked 2020-04-03 13:25:12 +0300

SaimenSays gravatar image

updated 2020-04-03 19:26:16 +0300

Hello, I thought this was already mentioned here on TJC, but searched quite a while and was unable to find related. Wanted to make a backup before updating to 3.3.0.14. But at about 75% there is a sad smiley and it was aborted. Tried again after restart, but still not working. SD card has 10Gb free. The logfile has following information:

Standard error was:
tar: /opt/alien/run/media/nemo/HANDY/sailfish_backup_2020-04-03T07-05-19Z.tar: Nur 4095 von 10240 Bytes geschrieben
tar: Error is not recoverable: exiting now

[ERROR] 3 Process exited with non-zero exit code or status, quitting.
Status = Finalizing
[UI] Beende Operation
Status = Finished
edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by SaimenSays
close date 2020-04-04 11:19:43.529691

Comments

it's helpful to use tags to denote which OS version and device type you are having problems with. I can take a rough guess which version but seeing a tag would make it easier to know. :)

Spam Hunter ( 2020-04-03 16:28:00 +0300 )edit
1

You are right, but as I wrote, I would like to update to 3.3, I thought it is obvious. Added the tags...

SaimenSays ( 2020-04-03 19:28:35 +0300 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2020-04-03 18:25:23 +0300

Louis gravatar image

updated 2020-04-03 18:31:13 +0300

Please make sure you not trying to use a FAT32-formatted SD card as backup storage.

In the end of the backup process all content will be compressed to a single tar file. If the tar file size exceeds 4GB the backup process fails.

To solve this. Backup the data from your SD Card, reformat it as ext4. This is easiest on a Linux computer if you don't want to use the cli.

Afterwards you can either make sure the drive is writable by all by executing from the computer:

sudo chmod 777 -R SDCARDMOUNT

Alternatively you can execute the commands after putting it back into your phone to insure it's writable by the nemo user:

lsblk

Note the mountpoint for mmcblk1p1

devel-su

chown -R nemo:nemo MOUNTFORSDCARD

edit flag offensive delete publish link more

Comments

It is formated as vfat. Had never a problem with that for the last backups. Even made more space avialable by removing old backups. Did a checkdisk on windows now, reinserted it and tried again. Still without success :(

SaimenSays ( 2020-04-03 19:32:02 +0300 )edit
1

The problem is that vfat does not support file sizes over 4GB therefore if the backup file gets over 4GB while being compressed the backup process will fail. To prevent this you have to reformat your SD Card as ext4 as described in my answer. It doesn't help deleting data on the sd card as 4GB limit is a vfat file system limitation.

Louis ( 2020-04-04 01:17:12 +0300 )edit

Also the reason why you've been able to take backups previously without any issues is most likely due to a smaller amount of data resulting in a tar backup file smaller than 4GB.

Louis ( 2020-04-04 01:20:43 +0300 )edit
1

If you have the SD inserted,
why not MOVE ( backup ) Videos, Pictures folder on your own?

This way the backup file will be much smaller and faster...

peterleinchen ( 2020-04-04 01:44:50 +0300 )edit

Sorry for my stupidity! I misinterpreted vFAT, the very old one, to be exFAT which allows files >4GB.
@Louis: Of course it works after following your instructions.

SaimenSays ( 2020-04-04 11:19:20 +0300 )edit

Question tools

Follow
2 followers

Stats

Asked: 2020-04-03 13:25:12 +0300

Seen: 177 times

Last updated: Apr 03 '20