====== 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 ===== * **[[luthien:files:opt_duplicity_etc_duplicity_backup_env|/opt/duplicity/etc/duplicity-backup.env]]** * **[[luthien:files:opt_duplicity_bin_duplicity_backup_sh|/opt/duplicity/bin/duplicity-backup.sh]]** * **[[luthien:files:opt_duplicity_bin_duplicity_restore_sh|/opt/duplicity/bin/duplicity-restore.sh]]** ===== Logrotate ===== Neue Konfiguration **[[luthien:files:etc_logrotate_d_duplicity_backup|/etc/logrotate.d/duplicity-backup]]** anlegen. Danach Logrotate neu starten. ===== Crontab ===== Die Sicherung per Cron-Datei **[[luthien:files:etc_cron_d_duplicity_backup|/etc/cron.d/duplicity-backup]]** aktivieren.