Plan borg: updates (step).
This commit is contained in:
parent
a6eb532f67
commit
a71ddd74d3
|
@ -149,16 +149,16 @@ wget -nv $URL/models/excludes
|
|||
wget -nv $URL/models/model-conf-remote-client.yaml -O /etc/borgmatic/config.yaml
|
||||
```
|
||||
|
||||
Vérifier que la configuration Borgmatic est valide :
|
||||
```
|
||||
validate-borgmatic-config
|
||||
```
|
||||
|
||||
Configurer la passphrase dans `/etc/borgmatic/config.yaml` :
|
||||
```
|
||||
encryption_passphrase: 'XXXXXXXXXXXXXX'
|
||||
```
|
||||
|
||||
Vérifier que la configuration Borgmatic est valide :
|
||||
```
|
||||
validate-borgmatic-config
|
||||
```
|
||||
|
||||
Ajouter la clé `root` du serveur de sauvegarde dans `/home/admin666/.ssh/authorized_keys` :
|
||||
```
|
||||
ssh-ed25519 AAAAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX root@sauvkipeu.libre-en-communs.org
|
||||
|
@ -180,7 +180,7 @@ command="export BORG_PASSCOMMAND=/srv/borg/.borg-passphrase; borg serve --restri
|
|||
|
||||
Lancer une première sauvegarde (prévoir 2 min) :
|
||||
```
|
||||
time sudo /srv/borg/bin/dobackup-remote foo.bar.org
|
||||
time borgmatic create --stats --verbosity 1
|
||||
```
|
||||
|
||||
## Tester côté serveur
|
||||
|
|
|
@ -9,8 +9,8 @@ location:
|
|||
- /var
|
||||
|
||||
repositories:
|
||||
- borg@sauvkipeu.libre-en-communs.org:/var/backups/borg/{fqdn}.repo
|
||||
#- borg@gardefou.libre-en-communs.org:/var/backups/borg/{fqdn}.repo
|
||||
- ssh://borg@sauvkipeu.libre-en-communs.org/var/backups/borg/{fqdn}.repo
|
||||
#- ssh://borg@gardefou.libre-en-communs.org/var/backups/borg/{fqdn}.repo
|
||||
|
||||
exclude_from:
|
||||
- /etc/borgmatic/excludes
|
||||
|
|
Loading…
Reference in New Issue