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

Restoring backup fails #103

Open Klaasstap opened 5 months ago

Klaasstap commented 5 months ago

Device info

Manufacturer: Motorola Android version: 10 Custom ROM/rooted? yes Model: G3

System info

<Linux Ubuntu 22.04> Available disk space: Operating system:


I try to restore a backup to another device. It's strange. When I try to restore from this backup, using the command backup.sh, I have to select the same options as when I do a backup: tar or adb, hooks yes/no; I also have to select an erase method for the temporary files, but they have already been wiped when I made the backup. When I eventually select RESTORE and select the backup file, I get the message: file doesn´t exist. But it does. What am I doing wrong?

Klaasstap commented 5 months ago

https://github.com/mrrfv/open-android-backup/assets/101284778/334002b0-b8e8-4871-9d4a-25e95d77d758

Klaasstap commented 5 months ago

Should the first question when giving the command backup.sh not be: what to do: backup or restore?

Klaasstap commented 5 months ago

With the phone I created the backup for, I get the same output when restoring: file or directory doesn´t exist.

mrrfv commented 5 months ago

You need to remove the apostrophes (') as well as any spaces from the file path, so instead of e.g. '/home/myuser/backup.7z' it should be /home/myuser/backup.7z. If that doesn't work, try placing the backup file in a directory with no spaces.