Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 1 | |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 2 | =================== |
| 3 | Backupninja formula |
| 4 | =================== |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 5 | |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 6 | Backupninja allows you to coordinate system backup by dropping a few simple |
| 7 | configuration files into /etc/backup.d/. Most programs you might use for |
| 8 | making backups don't have their own configuration file format. |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 9 | |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 10 | Backupninja provides a centralized way to configure and schedule many |
| 11 | different backup utilities. It allows for secure, remote, incremental |
| 12 | filesytem backup (via rdiff-backup), compressed incremental data, backup |
| 13 | system and hardware info, encrypted remote backups (via duplicity), safe |
| 14 | backup of MySQL/PostgreSQL databases, subversion or trac repositories, burn |
| 15 | CD/DVDs or create ISOs, incremental rsync with hardlinking. |
| 16 | |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 17 | |
| 18 | Sample pillars |
| 19 | ============== |
| 20 | |
| 21 | Backup client with ssh/rsync remote target |
| 22 | |
jan kaufman | d631551 | 2016-02-03 21:19:09 +0100 | [diff] [blame] | 23 | .. code-block:: yaml |
| 24 | |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 25 | backupninja: |
| 26 | client: |
| 27 | enabled: true |
| 28 | target: |
| 29 | engine: rsync |
| 30 | host: 10.10.10.208 |
| 31 | user: backupninja |
| 32 | |
Jiri Broulik | 1b693c6 | 2018-03-02 15:15:46 +0100 | [diff] [blame^] | 33 | Backup 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 Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 46 | Backup client with s3 remote target |
| 47 | |
jan kaufman | d631551 | 2016-02-03 21:19:09 +0100 | [diff] [blame] | 48 | .. code-block:: yaml |
| 49 | |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 50 | backupninja: |
| 51 | client: |
| 52 | enabled: true |
| 53 | target: |
Michael KutĂ˝ | 4896b92 | 2016-10-23 22:52:40 +0200 | [diff] [blame] | 54 | engine: dup |
| 55 | url: s3+http://bucket-name/folder-name |
| 56 | auth: |
| 57 | awsaccesskeyid: awsaccesskeyid |
| 58 | awssecretaccesskey: awssecretaccesskey |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 59 | |
jan kaufman | c1b2159 | 2016-01-28 14:03:03 +0100 | [diff] [blame] | 60 | Backup client with webdav target |
| 61 | |
jan kaufman | d631551 | 2016-02-03 21:19:09 +0100 | [diff] [blame] | 62 | .. code-block:: yaml |
| 63 | |
jan kaufman | c1b2159 | 2016-01-28 14:03:03 +0100 | [diff] [blame] | 64 | backupninja: |
| 65 | client: |
| 66 | enabled: true |
| 67 | target: |
Filip Pytloun | 7306f70 | 2016-02-05 17:31:18 +0100 | [diff] [blame] | 68 | engine: dup |
Filip Pytloun | 6ce66eb | 2016-02-05 17:03:00 +0100 | [diff] [blame] | 69 | url: webdavs://backup.cloud.example.com/box.example.com/ |
jan kaufman | 0b9fdb5 | 2016-02-04 15:55:08 +0100 | [diff] [blame] | 70 | auth: |
| 71 | gss: |
| 72 | principal: host/${linux:network:fqdn} |
| 73 | keytab: /etc/krb5.keytab |
jan kaufman | c1b2159 | 2016-01-28 14:03:03 +0100 | [diff] [blame] | 74 | |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 75 | Backup server rsync/rdiff |
| 76 | |
jan kaufman | d631551 | 2016-02-03 21:19:09 +0100 | [diff] [blame] | 77 | .. code-block:: yaml |
| 78 | |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 79 | backupninja: |
| 80 | server: |
| 81 | enabled: true |
| 82 | rdiff: true |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 83 | key: |
| 84 | client1.domain.com: |
Jiri Broulik | 7071533 | 2017-04-27 22:04:41 +0200 | [diff] [blame] | 85 | enabled: true |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 86 | key: ssh-key |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 87 | |
Jiri Broulik | 34dc3da | 2018-02-27 11:07:11 +0100 | [diff] [blame] | 88 | Backup server without strict client policy restriction |
| 89 | |
| 90 | .. code-block:: yaml |
| 91 | |
| 92 | backupninja: |
| 93 | server: |
| 94 | restrict_clients: false |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 95 | |
Andrey | 21ff902 | 2017-10-12 09:54:09 -0500 | [diff] [blame] | 96 | Backup client with local storage |
| 97 | |
| 98 | .. code-block:: yaml |
| 99 | |
| 100 | backupninja: |
| 101 | client: |
| 102 | enabled: true |
| 103 | target: |
| 104 | engine: local |
| 105 | |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 106 | More information |
| 107 | ================ |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 108 | |
| 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 Pytloun | 68f73d3 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 114 | |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 115 | |
Filip Pytloun | 68f73d3 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 116 | Documentation and Bugs |
| 117 | ====================== |
| 118 | |
| 119 | To learn how to install and update salt-formulas, consult the documentation |
| 120 | available online at: |
| 121 | |
| 122 | http://salt-formulas.readthedocs.io/ |
| 123 | |
| 124 | In the unfortunate event that bugs are discovered, they should be reported to |
| 125 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 126 | formula: |
| 127 | |
| 128 | https://github.com/salt-formulas/salt-formula-backupninja/issues |
| 129 | |
| 130 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 131 | use Launchpad salt-formulas project: |
| 132 | |
| 133 | https://launchpad.net/salt-formulas |
| 134 | |
| 135 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 136 | |
| 137 | https://launchpad.net/~salt-formulas-users |
| 138 | |
| 139 | Developers wishing to work on the salt-formulas projects should always base |
| 140 | their work on master branch and submit pull request against specific formula. |
| 141 | |
| 142 | https://github.com/salt-formulas/salt-formula-backupninja |
| 143 | |
| 144 | Any questions or feedback is always welcome so feel free to join our IRC |
| 145 | channel: |
| 146 | |
| 147 | #salt-formulas @ irc.freenode.net |