mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-07 11:01:36 +01:00
add: new storrage exports for carddav
This commit is contained in:
@@ -4,12 +4,23 @@ set -e
|
|||||||
cd
|
cd
|
||||||
BACKUP_NAME=backup_$(date +%Y%m%d).zip
|
BACKUP_NAME=backup_$(date +%Y%m%d).zip
|
||||||
mkdir -p ~/ths_caldav_backups/
|
mkdir -p ~/ths_caldav_backups/
|
||||||
|
mkdir -p ~/ths_carddav_backups/
|
||||||
|
mkdir -p ~/ths_carddav_telefon_backups/
|
||||||
|
|
||||||
vdirsyncer -c vsyncdir.conf sync
|
vdirsyncer -c vsyncdir.conf sync
|
||||||
|
|
||||||
zip -q -r ~/ths_caldav_backups/${BACKUP_NAME} ~/ths-caldav
|
zip -q -r ~/ths_caldav_backups/${BACKUP_NAME} ~/ths-caldav
|
||||||
|
zip -q -r ~/ths_carddav_backups/${BACKUP_NAME} ~/ths-carddav
|
||||||
|
zip -q -r ~/ths_carddav_telefon_backups/${BACKUP_NAME} ~/ths-carddav-telefon
|
||||||
|
|
||||||
~/backups/backup-tools/backup_manager.py ~/ths_caldav_backups/ --debug
|
~/backups/backup-tools/backup_manager.py ~/ths_caldav_backups/ --debug
|
||||||
|
~/backups/backup-tools/backup_manager.py ~/ths_carddav_backups/ --debug
|
||||||
|
~/backups/backup-tools/backup_manager.py ~/ths_carddav_telefon_backups/ --debug
|
||||||
|
|
||||||
# send to storrage box
|
# send to storrage box
|
||||||
rsync --delete --rsh="/usr/bin/sshpass -p HISTORY_PURGED_SECRET ssh -p23" -r ths_caldav_backups/* u244665-sub2@u244665.your-storagebox.de:./ths_caldav_backups/
|
rsync --delete --rsh="/usr/bin/sshpass -p HISTORY_PURGED_SECRET ssh -p23" -r ths_caldav_backups/* u244665-sub2@u244665.your-storagebox.de:./ths_caldav_backups/
|
||||||
|
rsync --delete --rsh="/usr/bin/sshpass -p HISTORY_PURGED_SECRET ssh -p23" -r ths_carddav_backups/* u244665-sub2@u244665.your-storagebox.de:./ths_caldav_backups/carddav/
|
||||||
|
rsync --delete --rsh="/usr/bin/sshpass -p HISTORY_PURGED_SECRET ssh -p23" -r ths_carddav_telefon_backups/* u244665-sub2@u244665.your-storagebox.de:./ths_caldav_backups/carddav_telefon/
|
||||||
|
|
||||||
curl -H "Content-Type: application/json" \
|
curl -H "Content-Type: application/json" \
|
||||||
-X POST https://async-icinga.atlantishq.de/ \
|
-X POST https://async-icinga.atlantishq.de/ \
|
||||||
|
|||||||
@@ -72,3 +72,10 @@
|
|||||||
cron:
|
cron:
|
||||||
name: "monitoring"
|
name: "monitoring"
|
||||||
job: "/etc/monitoring/monitoring-report.py -c /etc/monitoring.conf --nsca-bin /bin/send_nsca --nsca-config /etc/send_nsca.cfg"
|
job: "/etc/monitoring/monitoring-report.py -c /etc/monitoring.conf --nsca-bin /bin/send_nsca --nsca-config /etc/send_nsca.cfg"
|
||||||
|
|
||||||
|
- name: Install Prometheus Node Exporter
|
||||||
|
become: yes
|
||||||
|
import_role:
|
||||||
|
name: prometheus.prometheus.node_exporter
|
||||||
|
vars:
|
||||||
|
node_exporter_web_telemetry_path: "/node-exporter"
|
||||||
|
|||||||
Reference in New Issue
Block a user