zookeeper backup
Change-Id: I023cd0465e5c6c0154bdd48115d1e4e0c81926d2
diff --git a/README.rst b/README.rst
index 9b2f7fe..ef4d3de 100644
--- a/README.rst
+++ b/README.rst
@@ -34,6 +34,87 @@
- host: ${_param:cluster_node03_address}
id: 3
+Backup client with ssh/rsync remote host
+
+.. code-block:: yaml
+
+ zookeeper:
+ backup:
+ client:
+ enabled: true
+ full_backups_to_keep: 3
+ hours_before_full: 24
+ target:
+ host: cfg01
+
+ .. note:: full_backups_to_keep param states how many backup will be stored locally on zookeeper client.
+ More options to relocate local backups can be done using salt-formula-backupninja.
+
+Backup client with local backup only
+
+.. code-block:: yaml
+
+ zookeeper:
+ backup:
+ client:
+ enabled: true
+ full_backups_to_keep: 3
+ hours_before_full: 24
+
+ .. note:: full_backups_to_keep param states how many backup will be stored locally on zookeeper client
+
+
+Backup server rsync
+
+.. code-block:: yaml
+
+ zookeeper:
+ backup:
+ server:
+ enabled: true
+ hours_before_full: 24
+ full_backups_to_keep: 5
+ key:
+ zookeeper_pub_key:
+ enabled: true
+ key: ssh_rsa
+
+Client restore from local backup:
+
+.. code-block:: yaml
+
+ zookeeper:
+ backup:
+ client:
+ enabled: true
+ full_backups_to_keep: 3
+ hours_before_full: 24
+ target:
+ host: cfg01
+ restore_latest: 1
+ restore_from: local
+
+ .. note:: restore_latest param with a value of 1 means to restore db from the last full backup. 2 would mean to restore second latest full backup.
+
+
+Client restore from remote backup:
+
+.. code-block:: yaml
+
+ zookeeper:
+ backup:
+ client:
+ enabled: true
+ full_backups_to_keep: 3
+ hours_before_full: 24
+ target:
+ host: cfg01
+ restore_latest: 1
+ restore_from: remote
+
+ .. note:: restore_latest param with a value of 1 means to restore db from the last full backup. 2 would mean to restore second latest full backup.
+
+
Read more
=========