installation_d_obnam
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
installation_d_obnam [2017/03/03 12:12] – [Configuration] simon | installation_d_obnam [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Installation d' | ||
- | ===== Présentation ===== | ||
- | //TO DO// | ||
- | |||
- | ===== Installation ===== | ||
- | Je vais suivre le [[https:// | ||
- | <code bash> | ||
- | # apt-get install obnam | ||
- | </ | ||
- | < | ||
- | <code bash> | ||
- | Reading package lists... Done | ||
- | Building dependency tree | ||
- | Reading state information... Done | ||
- | The following extra packages will be installed: | ||
- | fuse libfuse2 python-cliapp python-crypto python-ecdsa python-fuse python-larch | ||
- | python-paramiko python-six python-tracing python-ttystatus | ||
- | Suggested packages: | ||
- | libjs-query libjs-underscore python-crypto-dbg python-crypto-doc libjs-jquery | ||
- | The following NEW packages will be installed: | ||
- | fuse libfuse2 obnam python-cliapp python-crypto python-ecdsa python-fuse python-larch | ||
- | python-paramiko python-six python-tracing python-ttystatus | ||
- | 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded. | ||
- | Need to get 1,686 kB of archives. | ||
- | After this operation, 5,382 kB of additional disk space will be used. | ||
- | Do you want to continue? [Y/n] | ||
- | Get:1 http:// | ||
- | Get:2 http:// | ||
- | Get:3 http:// | ||
- | Get:4 http:// | ||
- | Get:5 http:// | ||
- | Get:6 http:// | ||
- | Get:7 http:// | ||
- | Get:8 http:// | ||
- | Get:9 http:// | ||
- | Get:10 http:// | ||
- | Get:11 http:// | ||
- | Get:12 http:// | ||
- | Fetched 1,686 kB in 0s (5,055 kB/s) | ||
- | debconf: delaying package configuration, | ||
- | Selecting previously unselected package libfuse2: | ||
- | (Reading database ... 15238 files and directories currently installed.) | ||
- | Preparing to unpack .../ | ||
- | Unpacking libfuse2: | ||
- | Selecting previously unselected package fuse. | ||
- | Preparing to unpack .../ | ||
- | Unpacking fuse (2.9.3-15+deb8u2) ... | ||
- | Selecting previously unselected package python-tracing. | ||
- | Preparing to unpack .../ | ||
- | Unpacking python-tracing (0.8-1) ... | ||
- | Selecting previously unselected package python-cliapp. | ||
- | Preparing to unpack .../ | ||
- | Unpacking python-cliapp (1.20140719-1) ... | ||
- | Selecting previously unselected package python-larch. | ||
- | Preparing to unpack .../ | ||
- | Unpacking python-larch (1.20131130-1) ... | ||
- | Selecting previously unselected package python-ttystatus. | ||
- | Preparing to unpack .../ | ||
- | Unpacking python-ttystatus (0.23-1) ... | ||
- | Selecting previously unselected package python-crypto. | ||
- | Preparing to unpack .../ | ||
- | Unpacking python-crypto (2.6.1-5+deb8u1) ... | ||
- | Selecting previously unselected package python-six. | ||
- | Preparing to unpack .../ | ||
- | Unpacking python-six (1.8.0-1) ... | ||
- | Selecting previously unselected package python-ecdsa. | ||
- | Preparing to unpack .../ | ||
- | Unpacking python-ecdsa (0.11-1) ... | ||
- | Selecting previously unselected package python-paramiko. | ||
- | Preparing to unpack .../ | ||
- | Unpacking python-paramiko (1.15.1-1) ... | ||
- | Selecting previously unselected package python-fuse. | ||
- | Preparing to unpack .../ | ||
- | Unpacking python-fuse (2: | ||
- | Selecting previously unselected package obnam. | ||
- | Preparing to unpack .../ | ||
- | Unpacking obnam (1.8-1) ... | ||
- | Processing triggers for man-db (2.7.0.2-5) ... | ||
- | Setting up libfuse2: | ||
- | Setting up fuse (2.9.3-15+deb8u2) ... | ||
- | update-initramfs: | ||
- | Setting up python-tracing (0.8-1) ... | ||
- | Setting up python-cliapp (1.20140719-1) ... | ||
- | Setting up python-larch (1.20131130-1) ... | ||
- | Setting up python-ttystatus (0.23-1) ... | ||
- | Setting up python-crypto (2.6.1-5+deb8u1) ... | ||
- | Setting up python-six (1.8.0-1) ... | ||
- | Setting up python-ecdsa (0.11-1) ... | ||
- | Setting up python-paramiko (1.15.1-1) ... | ||
- | Setting up python-fuse (2: | ||
- | Setting up obnam (1.8-1) ... | ||
- | Processing triggers for libc-bin (2.19-18+deb8u7) ... | ||
- | Processing triggers for initramfs-tools (0.120+deb8u2) ... | ||
- | </ | ||
- | </ | ||
- | |||
- | ===== Configuration ===== | ||
- | On peut faire un fichier de configuration, | ||
- | <code bash> | ||
- | # vim ~/ | ||
- | |||
- | # cat ~/ | ||
- | [config] | ||
- | repository = /mnt/bkp/ | ||
- | log = / | ||
- | </ | ||
- | |||
- | ===== Tests de backups ===== | ||
- | ==== Premier backup ==== | ||
- | On peut sauvegarder tout le //home// d'un utilisateur, | ||
- | <code bash> | ||
- | # obnam backup --repository="/ | ||
- | Backed up 14245 files (of 14245 found), uploaded 218.0 MiB in 1h11m11s at 52.4 KiB/s average speed | ||
- | </ | ||
- | |||
- | (Le dossier /mnt/bkp/ est un montage via sshfs, ça ralenti le backup!) | ||
- | |||
- | <code bash> | ||
- | # cd /mnt/bkp/ | ||
- | /mnt/bkp# obnam generations | ||
- | 2 2017-02-19 18:19:12 .. 2017-02-19 19:29:43 (14245 files, 236801863 bytes) | ||
- | </ | ||
- | |||
- | On peut lancer un autre backup sans rien changer, juste pour voir. Ça va très vite! | ||
- | <code bash> | ||
- | # obnam backup --repository="/ | ||
- | Backed up 0 files (of 14245 found), uploaded 0.0 B in 56s at 0.0 B/s average speed | ||
- | </ | ||
- | |||
- | Si on rajoute un/des fichier(s), et qu'on relance un backup : | ||
- | <code bash> | ||
- | # obnam backup --repository="/ | ||
- | Backed up 2 files (of 14246 found), uploaded 0.0 B in 51s at 0.0 B/s average speed | ||
- | </ | ||
- | |||
- | On voit qu'on a plusieurs " | ||
- | <code bash> | ||
- | /mnt/bkp# obnam generations | ||
- | 2 2017-02-19 18:19:12 .. 2017-02-19 19:29:43 (14245 files, 236801863 bytes) | ||
- | 36 2017-02-19 20:16:22 .. 2017-02-19 20:16:39 (14245 files, 236801863 bytes) | ||
- | 70 2017-02-19 20:18:11 .. 2017-02-19 20:18:24 (14246 files, 236801863 bytes) | ||
- | </ | ||
- | |||
- | ==== Backup du dossier /var/www/ ==== | ||
- | <code bash> | ||
- | # obnam backup --repository="/ | ||
- | Backed up 48803 files (of 48803 found), uploaded 311.0 MiB in 4h21m3s at 20.3 KiB/s average speed | ||
- | |||
- | # ls -al /mnt/bkp/ | ||
- | total 32 | ||
- | drwxrwxr-x 1 549 549 4096 Feb 20 08:29 . | ||
- | drwxr-xr-x 3 root root 4096 Feb 19 18:11 .. | ||
- | drwx------ 1 549 549 4096 Feb 20 12:50 114327624274822128 | ||
- | drwx------ 1 549 549 4096 Feb 20 12:50 chunklist | ||
- | drwx------ 1 549 549 4096 Feb 20 12:50 chunks | ||
- | drwx------ 1 549 549 4096 Feb 20 12:50 chunksums | ||
- | drwx------ 1 549 549 4096 Feb 20 08:29 clientlist | ||
- | drwx------ 1 549 549 4096 Feb 20 08:29 metadata | ||
- | |||
- | # obnam backup --repository="/ | ||
- | Backed up 277 files (of 48987 found), uploaded 974.0 KiB in 4m31s at 3.6 KiB/s average speed | ||
- | </ | ||
- | |||
- | ===== À essayer ===== | ||
- | * Faire des modifications puis restaurer et vérifier que tout est bien comme avant. | ||
- | * Envoyer le backup dans un dossier [[encfs]] pour le chiffrement. | ||
- | * Évaluer tout ce qu'on veut sauvegarder sur un serveur et mettre tout dans un script. | ||
- | * ... | ||
- | ===== Sources ===== | ||
- | * [[https:// | ||
- | * [[https:// |
installation_d_obnam.1488543159.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)