Fixes #11 by ensuring that backup is restored in correct directory. Also, changes the backup format to make it more secure and more easily maintainable by not using full path but instead using path under /data/local/chroot-distro folder.
/data folder is no longer mounted by default, only if it is specified during install, if a backup has it, or if user afterwards adds it. This makes things easier for maintenance as there is no longer circular references in the file system. Also, this way there is one less chance of wiping your device clean if things go south.
Restore also now no longer mangles the backup by default. You now have to specify a parameter to reset the settings to defaults (those set during install).
Added more error checking and did some various small fixes.
Fixes #11 by ensuring that backup is restored in correct directory. Also, changes the backup format to make it more secure and more easily maintainable by not using full path but instead using path under
/data/local/chroot-distro
folder./data
folder is no longer mounted by default, only if it is specified during install, if a backup has it, or if user afterwards adds it. This makes things easier for maintenance as there is no longer circular references in the file system. Also, this way there is one less chance of wiping your device clean if things go south.Restore also now no longer mangles the backup by default. You now have to specify a parameter to reset the settings to defaults (those set during install).
Added more error checking and did some various small fixes.