Table of Contents

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.