You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.
First of all let me thank you for creating Holo Backup. It's great to see a backup solution that's both open-source and doesn't require root to work.
Here's a bug I recently found when trying to backup my device:
If you choose a folder with whitespace in it's name as your backup destination it will be passed to adb without quotes.
E.g.: For the save location /home/user/android backups the command being passed on to adb will be adb backup [..] -f /home/user/android backups. This will result in the backup being written to /home/user/android instead of /home/user/android backups.
A simple solution for this would be to always pass the target location on with double-quotes. So in the example above it would have to be: adb backup [..] -f "/home/user/android backups".
Edit: I don't know a single thing about python but now that I've looked through the code I see that the commands are already quoted. E.g. for the complete backup option:
First of all let me thank you for creating Holo Backup. It's great to see a backup solution that's both open-source and doesn't require root to work.
Here's a bug I recently found when trying to backup my device:
If you choose a folder with whitespace in it's name as your backup destination it will be passed to adb without quotes.
E.g.: For the save location
/home/user/android backups
the command being passed on toadb
will beadb backup [..] -f /home/user/android backups
. This will result in the backup being written to/home/user/android
instead of/home/user/android backups
.A simple solution for this would be to always pass the target location on with double-quotes. So in the example above it would have to be:adb backup [..] -f "/home/user/android backups"
.Edit: I don't know a single thing about python but now that I've looked through the code I see that the commands are already quoted. E.g. for the complete backup option:
I am not quite sure why they wouldn't work. Maybe it has to do with how gksudo handles quotation marks?
In any case, here's some more information about my system and the conditions under which I observed this bug:
Thanks for reading this.
The text was updated successfully, but these errors were encountered: