Changeset - 79aa82273952
[Not reviewed]
0 2 0
Branko Majic (branko) - 8 years ago 2016-01-16 23:28:45
branko@majic.rs
MAR-44: Document pre-backup scripts for backup_client role. Use static prefix for the backup pattern file for databases.
2 files changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general)
docs/rolereference.rst
Show inline comments
 
@@ -1500,8 +1500,10 @@ The role implements the following:
 
  GnuPG keyring used by backup software.
 
* Deploys private SSH key for logging-in into the backup server over SFTP.
 
* Deploys ``known_hosts`` file for SFTP fingerprint verification.
 
* Sets-up pre-backup task that creates LDAP database dump in location
 
  ``/srv/backup/slapd.bak``.
 
* Sets-up a handler that runs scripts/binaries before the actual backup
 
  run. This is helpful for producing database backups. Such scripts/binaries
 
  should be deployed to directory ``/etc/duply/main/pre.d/``, and marked
 
  executable by the root user.
 

	
 
Duply is configured as follows:
 

	
 
@@ -1520,6 +1522,8 @@ Duply is configured as follows:
 
* Maximum age for old backups is set to 6 months.
 
* Maximum age for full backups is set to 1 month.
 
* Volume size is set to 1GB.
 
* Pre-backup scripts are run via ``/etc/duply/main/pre`` handler that tries to
 
  execute scripts/binaries from directory ``/etc/duply/main/pre.d/``.
 

	
 
.. note::
 
   Since at time of this writing there are no lookup plugins for extracting key
roles/database/tasks/backup.yml
Show inline comments
 
@@ -9,7 +9,7 @@
 
    - "/srv/backup/mariadb"
 

	
 
- name: Deploy include patterns to backup
 
  template: src="backup_patterns.j2" dest="/etc/duply/main/patterns/{{ db_name }}"
 
  template: src="backup_patterns.j2" dest="/etc/duply/main/patterns/database_{{ db_name }}"
 
            owner="root" group="root" mode="700"
 
  notify:
 
    - Assemble Duply include patterns
0 comments (0 inline, 0 general)