User Tools

Site Tools


luthien:backup

Datensicherung

Hostname luthien.akv-soft.de

Paketinstallation

Zuvor wurden in Amazon S3 Benutzer, Gruppe und Bucket für die Datensicherung angelegt. Die gesamte Sicherung wird im Ordner /opt/duplicity in einer Python-Umgebung versenkt.

apt-get install python-is-python3 python3.10-venv mailutils
python -m venv /opt/duplicity
cd /opt/duplicity
./bin/pip install duplicity boto3 fasteners
mkdir etc
touch etc/duplicity-backup.env bin/duplicity-backup.sh bin/plicity-restore.sh
chmod 600 etc/duplicity-backup.env
chmod +x bin/duplicity-backup.sh bin/duplicity-restore.sh

Eigene Scripte

Logrotate

Neue Konfiguration /etc/logrotate.d/duplicity-backup anlegen. Danach Logrotate neu starten.

Crontab

Die Sicherung per Cron-Datei /etc/cron.d/duplicity-backup aktivieren.

luthien/backup.txt · Last modified: 2024/05/04 21:58 by lordjaxom

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki