mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 08:48:33 +01:00
fix: backup caldav script
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
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/
|
||||||
vdirsyncer -c vsyncdir.conf sync
|
vdirsyncer -c vsyncdir.conf sync
|
||||||
@@ -8,7 +9,7 @@ zip -q -r ~/ths_caldav_backups/${BACKUP_NAME} ~/ths-caldav
|
|||||||
~/backups/backup-tools/backup_manager.py ~/ths_caldav_backups/ --debug
|
~/backups/backup-tools/backup_manager.py ~/ths_caldav_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/backup_20230109.zip u244665-sub2@u244665.your-storagebox.de:./
|
rsync --delete --rsh="/usr/bin/sshpass -p HISTORY_PURGED_SECRET ssh -p23" -r ths_caldav_backups/${BACKUP_NAME} u244665-sub2@u244665.your-storagebox.de:./
|
||||||
|
|
||||||
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/ \
|
||||||
|
|||||||
Reference in New Issue
Block a user