Project

General

Profile

Backup » History » Version 6

Laurent GUERBY, 03/28/2016 08:16 PM

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 4 Mehdi Abaakouk
* old: https://chiliproject.tetaneutral.net/projects/git-tetaneutral-net/repository/puppet-backup
31 4 Mehdi Abaakouk
* new: https://chiliproject.tetaneutral.net/projects/git-tetaneutral-net/repository/puppetmaster/revisions/master/entry/modules/ttnn/manifests/backup.pp
32 1 Laurent GUERBY
** git history BackupPC => Attic => Borg
33 1 Laurent GUERBY
34 4 Mehdi Abaakouk
<pre>
35 5 Laurent GUERBY
# apt-get -t jessie-backports install borgbackup
36 4 Mehdi Abaakouk
$ cd /backup/attic/
37 4 Mehdi Abaakouk
$ borg upgrade <repo>
38 4 Mehdi Abaakouk
$ borg check --repair <repo>
39 4 Mehdi Abaakouk
$ mv <repo> ../borg/
40 4 Mehdi Abaakouk
$ chown -R backupinfra: /backup/borg/<repo>
41 4 Mehdi Abaakouk
</pre>
42 4 Mehdi Abaakouk
43 4 Mehdi Abaakouk
Dans le module puppet, le changement le plus important est le parametre compression:
44 4 Mehdi Abaakouk
45 4 Mehdi Abaakouk
<pre>
46 4 Mehdi Abaakouk
attic create ... <repo>-> borg create --compression zlib,6 ... <repo>
47 4 Mehdi Abaakouk
</pre>
48 4 Mehdi Abaakouk
49 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.