blob: 312ad4d8d6330401b6b82fffba882989cedaa722 [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"
43 host: 10.10.10.208
44 user: backupninja
45
Filip Pytloun311d79c2015-10-06 16:28:31 +020046Backup client with s3 remote target
47
jan kaufmand6315512016-02-03 21:19:09 +010048.. code-block:: yaml
49
Filip Pytloun311d79c2015-10-06 16:28:31 +020050 backupninja:
51 client:
52 enabled: true
53 target:
Michael Kutý4896b922016-10-23 22:52:40 +020054 engine: dup
55 url: s3+http://bucket-name/folder-name
56 auth:
57 awsaccesskeyid: awsaccesskeyid
58 awssecretaccesskey: awssecretaccesskey
Filip Pytloun311d79c2015-10-06 16:28:31 +020059
jan kaufmanc1b21592016-01-28 14:03:03 +010060Backup client with webdav target
61
jan kaufmand6315512016-02-03 21:19:09 +010062.. code-block:: yaml
63
jan kaufmanc1b21592016-01-28 14:03:03 +010064 backupninja:
65 client:
66 enabled: true
67 target:
Filip Pytloun7306f702016-02-05 17:31:18 +010068 engine: dup
Filip Pytloun6ce66eb2016-02-05 17:03:00 +010069 url: webdavs://backup.cloud.example.com/box.example.com/
jan kaufman0b9fdb52016-02-04 15:55:08 +010070 auth:
71 gss:
72 principal: host/${linux:network:fqdn}
73 keytab: /etc/krb5.keytab
jan kaufmanc1b21592016-01-28 14:03:03 +010074
Filip Pytloun311d79c2015-10-06 16:28:31 +020075Backup server rsync/rdiff
76
jan kaufmand6315512016-02-03 21:19:09 +010077.. code-block:: yaml
78
Filip Pytloun311d79c2015-10-06 16:28:31 +020079 backupninja:
80 server:
81 enabled: true
82 rdiff: true
Ales Komarek7c8d2c92017-02-21 12:18:05 +010083 key:
84 client1.domain.com:
Jiri Broulik70715332017-04-27 22:04:41 +020085 enabled: true
Ales Komarek7c8d2c92017-02-21 12:18:05 +010086 key: ssh-key
Filip Pytloun311d79c2015-10-06 16:28:31 +020087
Jiri Broulik34dc3da2018-02-27 11:07:11 +010088Backup server without strict client policy restriction
89
90.. code-block:: yaml
91
92 backupninja:
93 server:
94 restrict_clients: false
Ales Komarek7c8d2c92017-02-21 12:18:05 +010095
Andrey21ff9022017-10-12 09:54:09 -050096Backup client with local storage
97
98.. code-block:: yaml
99
100 backupninja:
101 client:
102 enabled: true
103 target:
104 engine: local
105
Ales Komarek7c8d2c92017-02-21 12:18:05 +0100106More information
107================
Filip Pytloun311d79c2015-10-06 16:28:31 +0200108
109* https://labs.riseup.net/code/projects/backupninja/wiki/Configuration
110* http://www.debian-administration.org/articles/351
111* http://duncanlock.net/blog/2013/08/27/comprehensive-linux-backups-with-etckeeper-backupninja/
112* https://github.com/riseuplabs/puppet-backupninja
113* http://www.ushills.co.uk/2008/02/backup-with-backupninja.html
Filip Pytloun68f73d32017-02-02 13:02:03 +0100114
Ales Komarek7c8d2c92017-02-21 12:18:05 +0100115
Filip Pytloun68f73d32017-02-02 13:02:03 +0100116Documentation and Bugs
117======================
118
119To learn how to install and update salt-formulas, consult the documentation
120available online at:
121
122 http://salt-formulas.readthedocs.io/
123
124In the unfortunate event that bugs are discovered, they should be reported to
125the appropriate issue tracker. Use Github issue tracker for specific salt
126formula:
127
128 https://github.com/salt-formulas/salt-formula-backupninja/issues
129
130For feature requests, bug reports or blueprints affecting entire ecosystem,
131use Launchpad salt-formulas project:
132
133 https://launchpad.net/salt-formulas
134
135You can also join salt-formulas-users team and subscribe to mailing list:
136
137 https://launchpad.net/~salt-formulas-users
138
139Developers wishing to work on the salt-formulas projects should always base
140their work on master branch and submit pull request against specific formula.
141
142 https://github.com/salt-formulas/salt-formula-backupninja
143
144Any questions or feedback is always welcome so feel free to join our IRC
145channel:
146
147 #salt-formulas @ irc.freenode.net