Commit 1670308a authored by ale's avatar ale

Minor documentation fixes

parent 3d39ca56
......@@ -104,8 +104,8 @@ which case the backup command will be invoked twice:
path: /users/account2
```
For datasets without atoms, the system will create a single atom with
the same name as the dataset.
Datasets that do not explicitly list atoms will implicitly be treated
as if they contained a single, anonymous atom.
In the same scenario as above, it may be easier to simply dump all
of /users, and just say that it contains *account1* and *account2*:
......@@ -148,17 +148,13 @@ rather data in a service that must be extracted somehow using tools.
It's possible to run arbitrary commands before or after a backup.
Regardless of the handler selected, all sources can define commands to
be run before and after backup or restore operations, either on the
whole dataset or individual atoms. These attributes are:
be run before and after backup or restore operations on the whole
dataset. These attributes are:
* *pre_backup_command* is invoked before a backup of the dataset
* *post_backup_command* is invoked after a backup of the dataset
* *pre_restore_command* is invoked before a restore of a dataset
* *post_restore_command* is invoked after a restore of a dataset
* *pre_atom_backup_command* is invoked before the backup of each atom
* *post_atom_backup_command* is invoked after the backup of each atom
* *pre_atom_restore_command* is invoked before the restore of each atom
* *post_atom_restore_command* is invoked after the restore of each atom
The scripts are run through a shell so they support environment
variable substitution and other shell syntax. The following special
......@@ -232,8 +228,9 @@ definition:
```
- name: mysql-pipe
backup_command: "mysqldump --databases ${atom.name}"
restore_command: "mysql"
params:
backup_command: "mysqldump --databases ${atom.name}"
restore_command: "mysql"
```
and this dataset source:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment