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 | |
| 33 | Backup client with s3 remote target |
| 34 | |
jan kaufman | d631551 | 2016-02-03 21:19:09 +0100 | [diff] [blame] | 35 | .. code-block:: yaml |
| 36 | |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 37 | backupninja: |
| 38 | client: |
| 39 | enabled: true |
| 40 | target: |
Michael KutĂ˝ | 4896b92 | 2016-10-23 22:52:40 +0200 | [diff] [blame] | 41 | engine: dup |
| 42 | url: s3+http://bucket-name/folder-name |
| 43 | auth: |
| 44 | awsaccesskeyid: awsaccesskeyid |
| 45 | awssecretaccesskey: awssecretaccesskey |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 46 | |
jan kaufman | c1b2159 | 2016-01-28 14:03:03 +0100 | [diff] [blame] | 47 | Backup client with webdav target |
| 48 | |
jan kaufman | d631551 | 2016-02-03 21:19:09 +0100 | [diff] [blame] | 49 | .. code-block:: yaml |
| 50 | |
jan kaufman | c1b2159 | 2016-01-28 14:03:03 +0100 | [diff] [blame] | 51 | backupninja: |
| 52 | client: |
| 53 | enabled: true |
| 54 | target: |
Filip Pytloun | 7306f70 | 2016-02-05 17:31:18 +0100 | [diff] [blame] | 55 | engine: dup |
Filip Pytloun | 6ce66eb | 2016-02-05 17:03:00 +0100 | [diff] [blame] | 56 | url: webdavs://backup.cloud.example.com/box.example.com/ |
jan kaufman | 0b9fdb5 | 2016-02-04 15:55:08 +0100 | [diff] [blame] | 57 | auth: |
| 58 | gss: |
| 59 | principal: host/${linux:network:fqdn} |
| 60 | keytab: /etc/krb5.keytab |
jan kaufman | c1b2159 | 2016-01-28 14:03:03 +0100 | [diff] [blame] | 61 | |
Martin Polreich | 41ee69c | 2018-03-05 13:17:02 +0100 | [diff] [blame^] | 62 | Backup client with exact backup times |
| 63 | |
| 64 | |
| 65 | .. note:: This settings will configure global backupninja backup to be |
| 66 | triggered at exactly set times. |
| 67 | |
| 68 | .. code-block:: yaml |
| 69 | |
| 70 | backupninja: |
| 71 | client: |
| 72 | enabled: true |
| 73 | auto_backup_disabled: false |
| 74 | backup_times: |
| 75 | day_of_week: 1 |
| 76 | hour: 2 |
| 77 | minute: 32 |
| 78 | |
| 79 | .. note:: This will trigger backup every monday at 2:32 AM. |
| 80 | |
| 81 | .. code-block:: yaml |
| 82 | |
| 83 | backupninja: |
| 84 | client: |
| 85 | enabled: true |
| 86 | auto_backup_disabled: false |
| 87 | backup_times: |
| 88 | day_of_month: 24 |
| 89 | hour: 14 |
| 90 | minute: 12 |
| 91 | |
| 92 | .. note:: This will trigger backup every 24th day of every month at 14:12 (2:12 PM). |
| 93 | |
| 94 | .. note:: Available parameters: |
| 95 | ``day_of_week`` (0, 3, 6 ...). If not set, defaults to '*'. |
| 96 | ``day_of_month`` (20, 25, 12, ...). If not set, defaults to '*'. |
| 97 | Only ``day_of_week`` or ``day_of_month`` can be defined at the same time. |
| 98 | ``hour`` (1, 10, 15, ...). If not defined, defaults to `1`. Uses 24 hour format. |
| 99 | ``minute`` (5, 10, 59, ...). If not defined, defaults to `00`. |
| 100 | |
| 101 | ..note:: Parameter ``auto_backup_disabled`` is optional. It disables automatic |
| 102 | backup when set to true. It's set to ``false``by default when not defined. |
| 103 | |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 104 | Backup server rsync/rdiff |
| 105 | |
jan kaufman | d631551 | 2016-02-03 21:19:09 +0100 | [diff] [blame] | 106 | .. code-block:: yaml |
| 107 | |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 108 | backupninja: |
| 109 | server: |
| 110 | enabled: true |
| 111 | rdiff: true |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 112 | key: |
| 113 | client1.domain.com: |
Jiri Broulik | 7071533 | 2017-04-27 22:04:41 +0200 | [diff] [blame] | 114 | enabled: true |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 115 | key: ssh-key |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 116 | |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 117 | |
Andrey | 21ff902 | 2017-10-12 09:54:09 -0500 | [diff] [blame] | 118 | Backup client with local storage |
| 119 | |
| 120 | .. code-block:: yaml |
| 121 | |
| 122 | backupninja: |
| 123 | client: |
| 124 | enabled: true |
| 125 | target: |
| 126 | engine: local |
| 127 | |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 128 | More information |
| 129 | ================ |
Filip Pytloun | 311d79c | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 130 | |
| 131 | * https://labs.riseup.net/code/projects/backupninja/wiki/Configuration |
| 132 | * http://www.debian-administration.org/articles/351 |
| 133 | * http://duncanlock.net/blog/2013/08/27/comprehensive-linux-backups-with-etckeeper-backupninja/ |
| 134 | * https://github.com/riseuplabs/puppet-backupninja |
| 135 | * http://www.ushills.co.uk/2008/02/backup-with-backupninja.html |
Filip Pytloun | 68f73d3 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 136 | |
Ales Komarek | 7c8d2c9 | 2017-02-21 12:18:05 +0100 | [diff] [blame] | 137 | |
Filip Pytloun | 68f73d3 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 138 | Documentation and Bugs |
| 139 | ====================== |
| 140 | |
| 141 | To learn how to install and update salt-formulas, consult the documentation |
| 142 | available online at: |
| 143 | |
| 144 | http://salt-formulas.readthedocs.io/ |
| 145 | |
| 146 | In the unfortunate event that bugs are discovered, they should be reported to |
| 147 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 148 | formula: |
| 149 | |
| 150 | https://github.com/salt-formulas/salt-formula-backupninja/issues |
| 151 | |
| 152 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 153 | use Launchpad salt-formulas project: |
| 154 | |
| 155 | https://launchpad.net/salt-formulas |
| 156 | |
| 157 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 158 | |
| 159 | https://launchpad.net/~salt-formulas-users |
| 160 | |
| 161 | Developers wishing to work on the salt-formulas projects should always base |
| 162 | their work on master branch and submit pull request against specific formula. |
| 163 | |
| 164 | https://github.com/salt-formulas/salt-formula-backupninja |
| 165 | |
| 166 | Any questions or feedback is always welcome so feel free to join our IRC |
| 167 | channel: |
| 168 | |
| 169 | #salt-formulas @ irc.freenode.net |