Outils pour utilisateurs

Outils du site


borg

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
borg [2019/06/29 15:15] – [Borg] simonborg [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 /mnt/data/backups/ 
-Enter new passphrase:  
-Enter same passphrase again:  
-Do you want your passphrase to be displayed for verification? [yN]: y 
-Your passphrase (between double-quotes): "maSuperLongueEtCompliquéePassphrase" 
-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 '/mnt/data/backups/raspberrypi' 
- 
-See https://borgbackup.readthedocs.io/en/stable/changes.html#pre-1-0-9-manifest-spoofing-vulnerability for details about the security implications. 
-</code> 
- 
-<code bash> 
-# ls -al /mnt/data/backups/ 
-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 
-</code> 
- 
-===== Faire un premier backup ===== 
-<code bash> 
-# borg create -v -s -p -C lzma,6 --exclude-from=/mnt/data/backups/raspberrypi-exclude RaspberryPi::{hostname}-{now:%Y%m%d-%H%M%S} / 
-</code> 
- 
-Le fichier raspberrypi-exclude contient les répertoire que je ne veux pas sauvegarder :  
-<code bash> 
-$ cat /mnt/data/backups/raspberrypi-exclude 
- 
-</code> 
-===== Sources ===== 
-  * [[https://www.sysnove.fr/blog/2016/06/backupninja-borg.html|Backup avec Borg et BackupNinja (sysnove.fr)]] 
-  * [[https://blog.garamotte.net/posts/2018/01/11/fr-backup-and-restore-with-borg.html|Backup-restore with borg (blog.garamotte.net)]] 
borg.1561821348.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)