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