mrrfv / open-android-backup

Back up your device without vendor lock-ins, using insecure software or root. Supports encryption and compression out of the box. Works cross-platform.
http://openandroidbackup.me/
GNU General Public License v3.0
674 stars 37 forks source link

E_FAIL 7-Zip error occurs if the backup archive isn't split #52

Open domicch opened 1 year ago

domicch commented 1 year ago

Device info

Manufacturer: Samsung Android version: 13 Custom ROM/rooted? No Model: Zfold 3

System info

Available disk space: 300 GB Operating system: Ubuntu 22.04.2 LTS


Describe the issue below. My phone backup data size is nearly 100GB. The backup process went well until the 7z compression part. I've never successfully created the compressed image.

I've dug into backup_func.sh and the problem is with this line: retry 5 7z a -p"$archive_password" -mhe=on -mx=9 -bb3 "$backup_archive" backup-tmp/* which always result in the following on my PC:

System ERROR:
E_FAIL

I suspect it is file size issue because if I break up the compressed file into 8G splits the compression went well. I.e.: 7z a -p -mhe=on -mx=9 -bb3 -v8g manual_compress.7z backup-tmp/*

Please consider splitting the compressed file

mrrfv commented 1 year ago

What file system are you running on your computer? This might be a file size issue, although modern file systems should be able to handle 100GB files.

domicch commented 1 year ago

Target folder on PC is using ext4 filesystem. In theory this shouldn't be a problem. However there are lots of moving parts and thanks to how descriptive the 7z log message is I don't know what has actually failed

mrrfv commented 1 year ago

Leaving this open with a more descriptive title in case similar bug reports come in.