Backup your tasks

Discuss RoboTask here
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Backup your tasks

Post by Oleg »

To backup your tasks use this task example, please:
[DEMO] Backup your tasks (daily backup).tsk

Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.
Do not forget to enable the task after importing.

This task make the incremental backup of your tasks into backup folder.
It crates separate folder for each day (the name based on date).

Of course you can change Backup folder and amount of the days as you wish. Look at the steps #1 and #3

The same task now included into installation package of RoboTask.

Also you can find more examples here: http://robotask.com/samples/
Oleg Yershov
Drhishint
Posts: 1
Joined: Thu Jan 24, 2019 9:02 am
Location: Clifton, NJ
Contact:

Re: Backup your tasks

Post by Drhishint »

Thanks for this tutorial....t's very important and useful for me =)
rgonzalez
Posts: 41
Joined: Fri Nov 26, 2010 10:19 am

Re: Backup your tasks

Post by rgonzalez »

Hi Oleg, where are the settings of the tasks saved? I would like to backup all of my tasks but also if the task is enabled or disabled. Thank you.
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Backup your tasks

Post by Oleg »

RoboTask saves all task parameters (for example Enabled/Disabled option) in the task file.
In other words the task file contains complete information about the task.
Oleg Yershov
rgonzalez
Posts: 41
Joined: Fri Nov 26, 2010 10:19 am

Re: Backup your tasks

Post by rgonzalez »

If I export a task and then import it to another computer, the task always appears as disabled, this means some settings are not saved when exporting?
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Backup your tasks

Post by Oleg »

When you import the task or paste the task from clipboard RoboTask disables the task forcibly. It is necessary for safety.
A task can be started immediately if it contains any triggers. In most cases, you need to change something in the task or look at the structure of the task before turning it on.
So you have to enable imported task manually.
Oleg Yershov
juanlu
Posts: 46
Joined: Wed Jul 31, 2019 12:33 am

Re: Backup your tasks

Post by juanlu »

N.B.: don't forget about global variables. Global variables (user global variables) are not saved in tsk files, but in the windows registry (not ideal, but that's another story). That means, if you export and import a task that uses global vars, make sure that those global variable exist in the target instance of RoboTask.
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Backup your tasks

Post by Oleg »

don't forget about global variables.
Global variables are stored in system registry:
For application mode
HKEY_CURRENT_USER\Software\Neowise\RoboTask\User variables

For system service mode
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Neowise\RoboTask\User variables

You can export and import these settings by using registry actions
Oleg Yershov
Hacienda
Posts: 1
Joined: Thu Aug 01, 2019 2:28 pm
Contact:

Re: Backup your tasks

Post by Hacienda »

juanlu wrote:if you export and import a task that uses global vars, make sure that those global variable exist in the target instance of RoboTask.
How do I do it?
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Backup your tasks

Post by Oleg »

How do I do it?
Menu Options->Variables and open Global user variables tab
Oleg Yershov
Post Reply