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

Out Of Memory when creating archive #77

Open flexxyfluxx opened 9 months ago

flexxyfluxx commented 9 months ago

Device info

Manufacturer: Nothing Android version: Nothing OS 1.5.2 (= Android 13) Custom ROM/rooted? no Model: Nothing Phone (1)

System info

Available disk space: >250GB Operating system: Arch Linux RAM: 16GB


When backing up my phone with backup.sh, everything runs smoothly. Files are retrieved, etc.

Then, when the script creates the final .7z archive, my computer inevitably runs out of memory and (presumably) gets killed by the OS. This causes the archive to become corrupted (and unreadable as an archive) in one way or another, and the script will terminate after 5 failed attempts to open / continue adding to the archive.

flexxyfluxx commented 9 months ago

Lowering compression to mx=5 solved this for me.

I don't know if this would be enough for a system w/ less ram (eg. 8gb) though..

mrrfv commented 9 months ago

7-Zip Ultra (mx=9) compression does indeed use lots of memory. The latest release, v1.0.12, should alleviate this issue by using maximum compression instead. If the problem's still going to persist I can set it to normal compression.