Aggiorna README.md
This commit is contained in:
parent
13b62aa0f2
commit
f0aa925935
1 changed files with 21 additions and 6 deletions
27
README.md
27
README.md
|
|
@ -112,17 +112,28 @@ keep_monthly: 6
|
|||
keep_yearly: 1
|
||||
```
|
||||
|
||||
si inizializza l'archivio
|
||||
|
||||
sudo borgmatic init --encryption repokey
|
||||
|
||||
```sh
|
||||
sudo borgmatic init --encryption repokey
|
||||
sudo borgmatic create --verbosity 1 --list --stats
|
||||
sudo borgmatic list
|
||||
sudo borgmatic list --archive orangepi5-plus-2025-10-06T14:21:23.549342
|
||||
```
|
||||
si crea l'archivio
|
||||
|
||||
sudo borgmatic create --verbosity 1 --list --stats
|
||||
|
||||
si listano tutti gli archivi
|
||||
|
||||
sudo borgmatic list
|
||||
|
||||
si verifica cosa c'è in un archivio
|
||||
|
||||
sudo borgmatic list --archive orangepi5-plus-2025-10-06T14:21:23.549342
|
||||
|
||||
Programmare in systemd un servizio per borg "borgmatic.service"
|
||||
|
||||
sudo nano /etc/systemd/system/borgmatic.service
|
||||
|
||||
ed inserire
|
||||
|
||||
```sh
|
||||
[Unit]
|
||||
Description=Borgmatic system backup
|
||||
|
|
@ -138,9 +149,12 @@ ProtectSystem=full
|
|||
ExecStart=/usr/bin/borgmatic --verbosity -1 --syslog-verbosity 1
|
||||
```
|
||||
|
||||
inserire un timer da usare con systemd
|
||||
|
||||
sudo nano /etc/systemd/system/borgmatic.timer
|
||||
|
||||
e inserire
|
||||
|
||||
```sh
|
||||
[Unit]
|
||||
Description=Daily backup timer
|
||||
|
|
@ -153,6 +167,7 @@ Persistent=true
|
|||
WantedBy=timers.target
|
||||
```
|
||||
|
||||
abilitare il servizio
|
||||
|
||||
sudo systemctl enable --now borgmatic.timer
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue