aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJulien Dessaux2021-02-22 21:55:29 +0100
committerJulien Dessaux2021-02-22 22:12:53 +0100
commitcab3d045c1e4405182284ff95015c7144563bf38 (patch)
treeb46ade642c5bcc1a96dfca91f9bf92153d652790 /README
parentAdded action plugins to simplify borg role (diff)
downloadborg-ansible-role-cab3d045c1e4405182284ff95015c7144563bf38.tar.gz
borg-ansible-role-cab3d045c1e4405182284ff95015c7144563bf38.tar.bz2
borg-ansible-role-cab3d045c1e4405182284ff95015c7144563bf38.zip
Simplified and fixed borg role
Diffstat (limited to '')
-rw-r--r--README7
1 files changed, 6 insertions, 1 deletions
diff --git a/README b/README
index 32b392d..2c5e078 100644
--- a/README
+++ b/README
@@ -6,12 +6,17 @@ There are several variables you can define to configure a machines response to t
- command_to_pipe: an optional command to pipe the backup data from
- pre_command: an optional command to run before a job
- post_command: an optional command to run after a job
+ - exclude: an optional list of paths containing locations to exclude
To be valid, a borg job entry needs to have exactly one of the path or command_to_pipe keys.
Here are some job examples :
-- { name: etc, path: "/etc" }
+- { name: etc, path: "/etc", exclude: [ "/etc/firmware" ] }
- { name: mysqldump, command_to_pipe: "/usr/bin/mysqldump -h {{ mysql_server }} -u{{ ansible_hostname }} -p{{ ansible_local.mysql_client.password }} --single-transaction --add-drop-database -B {{ ansible_hostname }}" }
- { name: gitea, path: "/tmp/gitea.zip", pre_command: "echo '/usr/local/sbin/gitea -C /etc/gitea -c /etc/gitea/app.ini dump -f /tmp/gitea.zip' | su -l _gitea", post_command: "rm -f /tmp/gitea.zip" }
There is an action plugin that parses the borg_server entries from all hosts and set a flag to True in adyxax['is_borg_server'] for any machine specified as a backup target
+
+Usefull commands:
+=================
+ansible all -i hosts -m shell -a "/usr/local/bin/adyxax_backup.sh"