• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

[Tasker] How to write a task, which export other tasks to seperate files?

ldm1417

Member
Hi All,

Is it possible to write a Task, which would Export ALL other Profiles and Tasks to the seperate files?

Could this task manage a type of the Export (XML, etc)?

I'd like to implement some kind of automatic export/backup...

Thank you!
 
I know of no way to do that with the distributed Tasker. There MIGHT be an addon that does it but I doubt it.

Profiles and tasks are not tightly contained. They are too widespread and one could encroach on the other.

The example of this is the need to tap the check mark to put a change in affect. Tapping the check mark performs updates across Tasker synchronizing them.

The usual way to meet the requirement you posed is to create a Project (at the bottom of the screen) and move all profiles, tasks, and variables into that Project. Then do an export of the Project.

… Thom
 
Last edited:
What is typically done is to move all profiles, tasks, scenes, and variables for something into a project and to then backup the project.

You would end up over time with a number of self contained projects that could be restored individually.

You create the project by doing a long press on the Home button and then selecting Add. Give it a name and then drag the elements that you want into it.

This is perhaps what you are trying to accomplish.

… Thom
 
OK, when I tap the 3-dot drop-down menu in the upper right coner and then select Data->Backup, what's actually backed up? Will it be a backup for the current Task? Profile? Project? The output file is in XML format.
How can I allow to Tasker to write Data to SDCard?
Thank you
 
I don't know what you are dealing with … Project? Profile? Task? If it is a Project …

Long press on the project name or icon at the bottom of the screen
Tap Export
Tap XML to Storage
Tap a file manager (I use Solid) save to
For the default …
Tap Tasker
Tap projects
Tap SELECT "PROJECTS"​
If the project name is AAAA there will be a /Tasker/projects/AAAA.prj.xml

… Thom
 
when I touch the 'XML to Storage', the Tasker just saves the Project to its default location. There is no a dialog (pop-up) where I would be able to change the backup name...
Should I change something in Tasker's settings, so it will allow to change the backup names?
 
I suggest you operate out of the default location for a while. You can move the single xml file containing the project anywhere you want with a file explorer.

… Thom
 
…. what you end up with is a single xml file containing everything in the project. You can then take this file to another device and import the project. This is what your original question was … being able to selectively manipulate them.

Personally I convert mine to apk files and install them as stand alone apps on other devices. This is done with Tasker App Factory and the apk is added to /Tasker/factory/kids.

These can be installed on other devices like any other apk and Tasker does not have to be installed on that device.

… Thom
 
Is there a way to read the Tasker XML backup files in some humen-friendly manner? Is there some PC app to read them?
 
I assume you are talking about an exported project file.

There are single XML files with all the data for the project. They can be read with a text editor.

An alternative would be to import the file into another device that has Tasker installed and then review the imported project.

… Thom
 
Back
Top Bottom