-
Notifications
You must be signed in to change notification settings - Fork 0
Tasks
Jerome Quere edited this page Apr 20, 2017
·
4 revisions
Tasks are one of the core concept of the application. A task is a way to backup some data. It can be by creating a tarball, using the mysqldump program or any other method that fits your specific needs.
All the tasks are declared in the configuration file.
Each task MUST have at least:
-
A name:
The name of the task must be unique and must be a valid bash token name
[a-zA-Z][a-ZA-Z0-9_]*
- A type: The type of the task
- A storage: The name of the storage you want to store the result of this backup to (see Storages)
IB_TASK_name_TYPE="tarball"
IB_TASK_name_STORAGE="myStorage"
Notice that the name of the task is used in the variable name.
Don't forget to add the task name in the IB_TASKS variable See Configuration.
For each tasks you can specify a retention policy in a valid date(2)
format.
IB_TASK_name_RETENTION="15days"
Exemple of valid retention:
-
15days
(default) 1month
1hour
3year
Older backup will be prune AFTER a successfull backup is done.
Made with love by Indigen.