blob: 3bbcf44193a5e1cb15fe2ed213f8a5ba1eb98358 [file] [log] [blame]
Filip Pytloun311d79c2015-10-06 16:28:31 +02001
Ales Komarek7c8d2c92017-02-21 12:18:05 +01002===================
3Backupninja formula
4===================
Filip Pytloun311d79c2015-10-06 16:28:31 +02005
Ales Komarek7c8d2c92017-02-21 12:18:05 +01006Backupninja allows you to coordinate system backup by dropping a few simple
7configuration files into /etc/backup.d/. Most programs you might use for
8making backups don't have their own configuration file format.
Filip Pytloun311d79c2015-10-06 16:28:31 +02009
Ales Komarek7c8d2c92017-02-21 12:18:05 +010010Backupninja provides a centralized way to configure and schedule many
11different backup utilities. It allows for secure, remote, incremental
12filesytem backup (via rdiff-backup), compressed incremental data, backup
13system and hardware info, encrypted remote backups (via duplicity), safe
14backup of MySQL/PostgreSQL databases, subversion or trac repositories, burn
15CD/DVDs or create ISOs, incremental rsync with hardlinking.
16
Filip Pytloun311d79c2015-10-06 16:28:31 +020017
18Sample pillars
19==============
20
21Backup client with ssh/rsync remote target
22
jan kaufmand6315512016-02-03 21:19:09 +010023.. code-block:: yaml
24
Filip Pytloun311d79c2015-10-06 16:28:31 +020025 backupninja:
26 client:
27 enabled: true
28 target:
29 engine: rsync
30 host: 10.10.10.208
31 user: backupninja
32
Jiri Broulik1b693c62018-03-02 15:15:46 +010033Backup client with ssh/rsync remote target with specific rsync options
34
35.. code-block:: yaml
36
37 backupninja:
38 client:
39 enabled: true
40 target:
41 engine: rsync
42 engine_opts: "-av --delete --recursive --safe-links"
Jiri Broulika0bab442018-03-02 18:16:13 +010043 home_dir: /srv/volumes/backup/backupninja
Jiri Broulik1b693c62018-03-02 15:15:46 +010044 host: 10.10.10.208
45 user: backupninja
46
Filip Pytloun311d79c2015-10-06 16:28:31 +020047Backup client with s3 remote target
48
jan kaufmand6315512016-02-03 21:19:09 +010049.. code-block:: yaml
50
Filip Pytloun311d79c2015-10-06 16:28:31 +020051 backupninja:
52 client:
53 enabled: true
54 target:
Michael Kutý4896b922016-10-23 22:52:40 +020055 engine: dup
56 url: s3+http://bucket-name/folder-name
57 auth:
58 awsaccesskeyid: awsaccesskeyid
59 awssecretaccesskey: awssecretaccesskey
Filip Pytloun311d79c2015-10-06 16:28:31 +020060
jan kaufmanc1b21592016-01-28 14:03:03 +010061Backup client with webdav target
62
jan kaufmand6315512016-02-03 21:19:09 +010063.. code-block:: yaml
64
jan kaufmanc1b21592016-01-28 14:03:03 +010065 backupninja:
66 client:
67 enabled: true
68 target:
Filip Pytloun7306f702016-02-05 17:31:18 +010069 engine: dup
Filip Pytloun6ce66eb2016-02-05 17:03:00 +010070 url: webdavs://backup.cloud.example.com/box.example.com/
jan kaufman0b9fdb52016-02-04 15:55:08 +010071 auth:
72 gss:
73 principal: host/${linux:network:fqdn}
74 keytab: /etc/krb5.keytab
jan kaufmanc1b21592016-01-28 14:03:03 +010075
Filip Pytloun311d79c2015-10-06 16:28:31 +020076Backup server rsync/rdiff
77
jan kaufmand6315512016-02-03 21:19:09 +010078.. code-block:: yaml
79
Filip Pytloun311d79c2015-10-06 16:28:31 +020080 backupninja:
81 server:
82 enabled: true
83 rdiff: true
Ales Komarek7c8d2c92017-02-21 12:18:05 +010084 key:
85 client1.domain.com:
Jiri Broulik70715332017-04-27 22:04:41 +020086 enabled: true
Ales Komarek7c8d2c92017-02-21 12:18:05 +010087 key: ssh-key
Filip Pytloun311d79c2015-10-06 16:28:31 +020088
Jiri Broulik34dc3da2018-02-27 11:07:11 +010089Backup server without strict client policy restriction
90
91.. code-block:: yaml
92
93 backupninja:
94 server:
95 restrict_clients: false
Ales Komarek7c8d2c92017-02-21 12:18:05 +010096
Andrey21ff9022017-10-12 09:54:09 -050097Backup client with local storage
98
99.. code-block:: yaml
100
101 backupninja:
102 client:
103 enabled: true
104 target:
105 engine: local
106
Ales Komarek7c8d2c92017-02-21 12:18:05 +0100107More information
108================
Filip Pytloun311d79c2015-10-06 16:28:31 +0200109
110* https://labs.riseup.net/code/projects/backupninja/wiki/Configuration
111* http://www.debian-administration.org/articles/351
112* http://duncanlock.net/blog/2013/08/27/comprehensive-linux-backups-with-etckeeper-backupninja/
113* https://github.com/riseuplabs/puppet-backupninja
114* http://www.ushills.co.uk/2008/02/backup-with-backupninja.html
Filip Pytloun68f73d32017-02-02 13:02:03 +0100115
Ales Komarek7c8d2c92017-02-21 12:18:05 +0100116
Filip Pytloun68f73d32017-02-02 13:02:03 +0100117Documentation and Bugs
118======================
119
120To learn how to install and update salt-formulas, consult the documentation
121available online at:
122
123 http://salt-formulas.readthedocs.io/
124
125In the unfortunate event that bugs are discovered, they should be reported to
126the appropriate issue tracker. Use Github issue tracker for specific salt
127formula:
128
129 https://github.com/salt-formulas/salt-formula-backupninja/issues
130
131For feature requests, bug reports or blueprints affecting entire ecosystem,
132use Launchpad salt-formulas project:
133
134 https://launchpad.net/salt-formulas
135
136You can also join salt-formulas-users team and subscribe to mailing list:
137
138 https://launchpad.net/~salt-formulas-users
139
140Developers wishing to work on the salt-formulas projects should always base
141their work on master branch and submit pull request against specific formula.
142
143 https://github.com/salt-formulas/salt-formula-backupninja
144
145Any questions or feedback is always welcome so feel free to join our IRC
146channel:
147
148 #salt-formulas @ irc.freenode.net