Hallo Forum,
sicherlich ist restic als Backup-Programm den einen oder anderem
bereits bekannt.
Bezugnehmend auf den Thread:
rsync funktioniert auf Kommandozeile aber nicht bash Script
Beitrag "[Linux] rsync funktioniert auf Komandozeile aber nicht bash Script"
wollte ich aber das o.g. Programm erwähnen, für die, die es noch nicht
kennen.
Ich verwende es seit Jahren und bin sehr zufrieden damit.
Näheres zum Programm unter github, siehe
https://github.com/restic/restic
Meine Kommandos, die ich verwende sind sehr rudimentär, aber
das Programm ist weitaus mächtiger - siehe Doku.
1 | /dev/shm/p.txt # PW fue das Archive
|
2 |
|
3 | restic -p /dev/shm/p.txt -r /mnt/sdc/BCK_ZBOOK init # restic Archive anlegen (einmalig)
|
4 |
|
5 |
|
6 | vi /dev/shm/p.txt # PW fürs Archive temporär anlegen
|
7 |
|
8 | restic -p /dev/shm/p.txt -r /mnt/sdc/BCK_ZBOOK --verbose backup /home/<user>/Dokumente # Backup erstellen
|
9 |
|
10 | restic -p /dev/shm/p.txt -r /mnt/sdc/BCK_ZBOOK --verbose check # Backup nach Erstellung checken
|
11 |
|
12 | restic -p /dev/shm/p.txt -r /mnt/sdc/BCK_ZBOOK snapshots > restic_bck_snapshots_ssd_20230501.txt # Inhalt des Backups Snapshots in Fileliste
|
13 |
|
14 |
|
15 | restic -p /dev/shm/p.txt -r /mnt/sdc/BCK_ZBOOK --verbose prune # letzten Backup Schritt zuruecknehmen, wenn check Fehler anzeigt.
|
Nicht nur das Backup sichern, sondern auch das Backup-Programm!
1 | >ls -l /usr/bin/restic
|
2 | -rwxr-xr-x 1 root root 25931776 May 17 01:13 /usr/bin/restic
|
Ist ein GO Programm und braucht keine weiteren Libs (single binary)
Noch schöne Pfingsten
Markus