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

Can't choose backup directory #112

Open 794 opened 2 months ago

794 commented 2 months ago

Once I reach the stage in the script where it says, "A graphical directory chooser dialog will be open. You will be prompted for the backup location. Press Enter to continue."

When I press enter it says, "Can't find directory ' ' " (Blank)

From there I can only quit. It's not opening any GUI to select a backup directory.

mrrfv commented 2 months ago

What operating system are you using? Do you have zenity installed, and if yes, what version? As a workaround, you can set the archive_path environment variable to the the directory where you want to save your backup, for example:

archive_path="/home/me/backups" ./backup.sh
794 commented 2 months ago

Windows 10 v2004. I don't have zenity, haven't heard of it, what does it do?

Is there a way to set the archive path in the Windows version?

mrrfv commented 2 months ago

Zenity is a program used to show a user-friendly file or directory chooser. It is automatically installed by the backup-windows.ps1 script. The script is supposed to fall back to showing traditional command-line dialogs if zenity is not installed. Setting environment variables on Windows isn't currently supported and requires you to modify backup.sh to include your own settings.

The problem is likely caused by your old Windows 10 version, that reached out of service about 2 years ago. It doesn't support technologies used by Open Android Backup, including WSLg. Updating your installation should fix this.