blob: c3d5293e4c6cc12a55c5946ccfa2e71ad9c8b794 [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
33Backup client with s3 remote target
34
jan kaufmand6315512016-02-03 21:19:09 +010035.. code-block:: yaml
36
Filip Pytloun311d79c2015-10-06 16:28:31 +020037 backupninja:
38 client:
39 enabled: true
40 target:
Michael Kutý4896b922016-10-23 22:52:40 +020041 engine: dup
42 url: s3+http://bucket-name/folder-name
43 auth:
44 awsaccesskeyid: awsaccesskeyid
45 awssecretaccesskey: awssecretaccesskey
Filip Pytloun311d79c2015-10-06 16:28:31 +020046
jan kaufmanc1b21592016-01-28 14:03:03 +010047Backup client with webdav target
48
jan kaufmand6315512016-02-03 21:19:09 +010049.. code-block:: yaml
50
jan kaufmanc1b21592016-01-28 14:03:03 +010051 backupninja:
52 client:
53 enabled: true
54 target:
Filip Pytloun7306f702016-02-05 17:31:18 +010055 engine: dup
Filip Pytloun6ce66eb2016-02-05 17:03:00 +010056 url: webdavs://backup.cloud.example.com/box.example.com/
jan kaufman0b9fdb52016-02-04 15:55:08 +010057 auth:
58 gss:
59 principal: host/${linux:network:fqdn}
60 keytab: /etc/krb5.keytab
jan kaufmanc1b21592016-01-28 14:03:03 +010061
Filip Pytloun311d79c2015-10-06 16:28:31 +020062Backup server rsync/rdiff
63
jan kaufmand6315512016-02-03 21:19:09 +010064.. code-block:: yaml
65
Filip Pytloun311d79c2015-10-06 16:28:31 +020066 backupninja:
67 server:
68 enabled: true
69 rdiff: true
Ales Komarek7c8d2c92017-02-21 12:18:05 +010070 key:
71 client1.domain.com:
Jiri Broulik70715332017-04-27 22:04:41 +020072 enabled: true
Ales Komarek7c8d2c92017-02-21 12:18:05 +010073 key: ssh-key
Filip Pytloun311d79c2015-10-06 16:28:31 +020074
Ales Komarek7c8d2c92017-02-21 12:18:05 +010075
Andrey21ff9022017-10-12 09:54:09 -050076Backup client with local storage
77
78.. code-block:: yaml
79
80 backupninja:
81 client:
82 enabled: true
83 target:
84 engine: local
85
Jaroslav Steinhaisl5a7068b2018-02-22 11:13:02 +010086
87Client scheduling in rsync engine
88=================================
89
90Client run backup at 5am every day.
91
92.. code-block:: yaml
93
94 backupninja:
95 client:
96 enabled: true
97 target:
98 engine: rsync
99 scheduling:
100 when:
101 - everyday at 05
102
103
104Client run backup in mupltiple times.
105
106.. code-block:: yaml
107
108 backupninja:
109 client:
110 enabled: true
111 target:
112 engine: rsync
113 scheduling:
114 when:
115 - everyday at 5
116 - tuesday at 05:30
117 - 25 at 23:45
118 - hourly
119
120If multiple "when" options are present, then they all apply. If two configurations files are scheduled to run in the same hour, then we fall back on the alphabetical ordering specified above.
121
122
Ales Komarek7c8d2c92017-02-21 12:18:05 +0100123More information
124================
Filip Pytloun311d79c2015-10-06 16:28:31 +0200125
126* https://labs.riseup.net/code/projects/backupninja/wiki/Configuration
127* http://www.debian-administration.org/articles/351
128* http://duncanlock.net/blog/2013/08/27/comprehensive-linux-backups-with-etckeeper-backupninja/
129* https://github.com/riseuplabs/puppet-backupninja
130* http://www.ushills.co.uk/2008/02/backup-with-backupninja.html
Filip Pytloun68f73d32017-02-02 13:02:03 +0100131
Ales Komarek7c8d2c92017-02-21 12:18:05 +0100132
Filip Pytloun68f73d32017-02-02 13:02:03 +0100133Documentation and Bugs
134======================
135
136To learn how to install and update salt-formulas, consult the documentation
137available online at:
138
139 http://salt-formulas.readthedocs.io/
140
141In the unfortunate event that bugs are discovered, they should be reported to
142the appropriate issue tracker. Use Github issue tracker for specific salt
143formula:
144
145 https://github.com/salt-formulas/salt-formula-backupninja/issues
146
147For feature requests, bug reports or blueprints affecting entire ecosystem,
148use Launchpad salt-formulas project:
149
150 https://launchpad.net/salt-formulas
151
152You can also join salt-formulas-users team and subscribe to mailing list:
153
154 https://launchpad.net/~salt-formulas-users
155
156Developers wishing to work on the salt-formulas projects should always base
157their work on master branch and submit pull request against specific formula.
158
159 https://github.com/salt-formulas/salt-formula-backupninja
160
161Any questions or feedback is always welcome so feel free to join our IRC
162channel:
163
164 #salt-formulas @ irc.freenode.net