Hi Tasker Pro's
First: I know that there is a Pro Group available, but I thought I'd
better ask here first because of the big userbase ;-)
Second:
I would like to have Tasker create a ZIP file of a specified directory
on my SDCard every now and then.
The idea behind this is that this would be easier to sync to eg.
dropbox than some hundred files. The directory it would concern is the
backup of Titanium Backup, but this would not be the only use.
Now, as Tasker is unfortunately not (yet?) capable of adding a whole
directory to a ZIP file, I discovered the possibility to execute
scripts via the Locale Execute plugin.
As Linux has some inbuilt scripting functions for creating ZIP files,
I suppose that this should be possible with Android, too.
Unfortunately, I'm absolutely unexperienced in writing such scripts. I
however found the following resources:
- using Python / SL4a:
http://www.calazan.com/how-to-zip-an-entire-directory-with-python/
or
http://stackoverflow.com/questions/296499/how-do-i-zip-the-contents-of-a-folder-using-python-version-2-5
- using linux commands:
http://lowfatlinux.com/linux-zip-manual.html
Is anybody able to point me to the right direction as how to create a
script which can be executed by Tasker to achieve this? In an optimal
case, it would allow Tasker to pass a variable in order to specify the
path to be zipped.
Any ideas? ;-)
Regards