borg
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 | ||
| borg [2019/06/30 08:08] – [Faire un premier backup] simon | borg [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Borg ====== | ||
| - | ===== Initialiser un repo de backup ===== | ||
| - | <code bash> | ||
| - | # borg init -e keyfile / | ||
| - | Enter new passphrase: | ||
| - | Enter same passphrase again: | ||
| - | Do you want your passphrase to be displayed for verification? | ||
| - | Your passphrase (between double-quotes): | ||
| - | Make sure the passphrase displayed above is exactly what you wanted. | ||
| - | By default repositories initialized with this version will produce security | ||
| - | errors if written to with an older version (up to and including Borg 1.0.8). | ||
| - | |||
| - | If you want to use these older versions, you can disable the check by runnning: | ||
| - | borg upgrade --disable-tam '/ | ||
| - | |||
| - | See https:// | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | # ls -al / | ||
| - | total 68 | ||
| - | drwxr-xr-x 3 root root 4096 jun 29 15:45 . | ||
| - | drwxr-xr-x 3 root root 4096 jun 29 15:43 .. | ||
| - | -rw------- 1 root root 164 jun 29 15:44 config | ||
| - | drwx------ 3 root root 4096 jun 29 15:45 data | ||
| - | -rw------- 1 root root 31 jun 29 15:45 hints.0 | ||
| - | -rw------- 1 root root 41258 jun 29 15:45 index.0 | ||
| - | -rw------- 1 root root 26 jun 29 15:44 README | ||
| - | </ | ||
| - | |||
| - | ===== Faire un premier backup ===== | ||
| - | <code bash> | ||
| - | # borg create -v -s -p -C lzma,6 --exclude-from=/ | ||
| - | Enter passphrase for key / | ||
| - | 2.53 GB O 1.41 GB C 1.37 GB D 64649 N var/ | ||
| - | Archive name: raspberrypi-20190629-155955 | ||
| - | Archive fingerprint: | ||
| - | Time (start): Sat, 2019-06-29 16:00:24 | ||
| - | Time (end): | ||
| - | Duration: 3 hours 25 minutes 28.50 seconds | ||
| - | Number of files: 102169 | ||
| - | ------------------------------------------------------------------------------ | ||
| - | | ||
| - | This archive: | ||
| - | All archives: | ||
| - | |||
| - | | ||
| - | Chunk index: | ||
| - | ------------------------------------------------------------------------------ | ||
| - | </ | ||
| - | |||
| - | Le fichier raspberrypi-exclude contient les répertoire que je ne veux pas sauvegarder : | ||
| - | <code bash> | ||
| - | # cat / | ||
| - | /mnt | ||
| - | /dev | ||
| - | /media | ||
| - | /proc | ||
| - | /run | ||
| - | /sys | ||
| - | /tmp | ||
| - | ~/.cache/ | ||
| - | /var/cache/ | ||
| - | </ | ||
| - | |||
| - | Un "borg list" nous montre bien ce nouveau backup : | ||
| - | <code bash> | ||
| - | # borg list / | ||
| - | Enter passphrase for key / | ||
| - | raspberrypi-20190629-155955 | ||
| - | </ | ||
| - | ===== Sources ===== | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
borg.1561882111.txt.gz · Dernière modification : (modification externe)
