Projet

Général

Profil

Backup » Historique » Version 8

Laurent GUERBY, 03/04/2016 09:05

1 3 Laurent GUERBY
{{>toc}}
2 1 Laurent GUERBY
3 1 Laurent GUERBY
h1. Backup
4 1 Laurent GUERBY
5 1 Laurent GUERBY
h2. Liens
6 1 Laurent GUERBY
7 1 Laurent GUERBY
* [[Backup_infra]]
8 1 Laurent GUERBY
* [[Apt_Backports_TTNN]] borg debian packaging
9 6 Laurent GUERBY
* https://www.reddit.com/r/linux/comments/42feqz/i_asked_here_for_the_optimal_backup_solution_and/
10 1 Laurent GUERBY
11 1 Laurent GUERBY
h2. BackupPC
12 1 Laurent GUERBY
13 1 Laurent GUERBY
* http://backuppc.sourceforge.net/
14 1 Laurent GUERBY
15 1 Laurent GUERBY
h2. Attic
16 1 Laurent GUERBY
17 1 Laurent GUERBY
* https://attic-backup.org/
18 1 Laurent GUERBY
* https://lists.tetaneutral.net/pipermail/technique/2015-September/001971.html
19 1 Laurent GUERBY
** Logiciel de backup : choix de attic
20 1 Laurent GUERBY
21 1 Laurent GUERBY
h2. Borg
22 1 Laurent GUERBY
23 1 Laurent GUERBY
* https://github.com/borgbackup
24 1 Laurent GUERBY
* http://readthedocs.org/projects/borgbackup/
25 2 Laurent GUERBY
* http://puppet.tetaneutral.net/pool/main/b/borgbackup/
26 2 Laurent GUERBY
* http://puppet.tetaneutral.net/dists/
27 1 Laurent GUERBY
28 1 Laurent GUERBY
h2. Migration Attic vers Borg
29 1 Laurent GUERBY
30 7 Laurent GUERBY
* https://github.com/borgbackup/borg/pull/231
31 4 Mehdi Abaakouk
* old: https://chiliproject.tetaneutral.net/projects/git-tetaneutral-net/repository/puppet-backup
32 4 Mehdi Abaakouk
* new: https://chiliproject.tetaneutral.net/projects/git-tetaneutral-net/repository/puppetmaster/revisions/master/entry/modules/ttnn/manifests/backup.pp
33 1 Laurent GUERBY
** git history BackupPC => Attic => Borg
34 1 Laurent GUERBY
35 4 Mehdi Abaakouk
<pre>
36 5 Laurent GUERBY
# apt-get -t jessie-backports install borgbackup
37 4 Mehdi Abaakouk
$ cd /backup/attic/
38 4 Mehdi Abaakouk
$ borg upgrade <repo>
39 4 Mehdi Abaakouk
$ borg check --repair <repo>
40 4 Mehdi Abaakouk
$ mv <repo> ../borg/
41 4 Mehdi Abaakouk
$ chown -R backupinfra: /backup/borg/<repo>
42 4 Mehdi Abaakouk
</pre>
43 4 Mehdi Abaakouk
44 8 Laurent GUERBY
Dans le module puppet, le changement le plus important est le parametre compression explicite pour correspondre au défaut de attic create :
45 4 Mehdi Abaakouk
46 4 Mehdi Abaakouk
<pre>
47 8 Laurent GUERBY
attic create ... <repo> -> borg create --compression zlib,6 ... <repo>
48 4 Mehdi Abaakouk
</pre>
49 4 Mehdi Abaakouk
50 4 Mehdi Abaakouk
Sinon le prochain backup sera non compressé, et aucun nouveau chucks ne correspondra aux anciens -> perte de la dedup. "zlib,6" étant le niveau de compression de attic.