Skip to content

Commit

Permalink
Fixed backup
Browse files Browse the repository at this point in the history
  • Loading branch information
basraven committed Jun 15, 2021
1 parent f854829 commit e5a5d98
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions documentation/src/content/docs/planning/_index.md
Expand Up @@ -14,11 +14,10 @@ Feel free to add comments on this through Github!
* Node failure alert in case Kubernetes is also not available (keepalived), the VIP can also be used for this

## Bugs
* Fix end-to-end backups
* Requires: Hardware Node DNS names
* Fix logging implementation with Elastic Search
* Network gateway (through Traefik?) for shields.io implementation
* Fix Kirby implementation
* Hardware Node DNS names


## Planned
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/backup/ha-remote-backup-cron/ha-remote-backup.yml
Expand Up @@ -20,8 +20,8 @@ metadata:
spec:
schedule: "5 2 * * *"
concurrencyPolicy: Replace
successfulJobsHistoryLimit: 2
failedJobsHistoryLimit: 2
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
jobTemplate:
spec:
template:
Expand Down
6 changes: 3 additions & 3 deletions kubernetes/backup/na-backup-cron/na-backup.yml
Expand Up @@ -8,7 +8,7 @@ data:
na-backup.sh: |-
#!/bin/sh
apk add rsync
rsync --archive --compress --no-perms --no-owner --no-group --delete --force /original/na/ /mirror/na/
rsync --archive --compress --no-perms --progress --no-owner --no-group --delete --force --exclude '/original/na/torrent/*' /original/na/ /mirror/na/
---
apiVersion: batch/v1beta1
kind: CronJob
Expand All @@ -20,8 +20,8 @@ metadata:
spec:
schedule: "5 4 * * *"
concurrencyPolicy: Replace
successfulJobsHistoryLimit: 2
failedJobsHistoryLimit: 2
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
jobTemplate:
spec:
template:
Expand Down
1 change: 1 addition & 0 deletions kubernetes/monitoring/node_exporter/node_exporter.yml
Expand Up @@ -12,6 +12,7 @@ data:
rm "/output/directory_size_$NODE_NAME.prom"
fi
/scripts/directory-size.sh "/mnt/hdd/na" "/output/directory_size_$NODE_NAME.prom"
/scripts/directory-size.sh "/mnt/hdd/na/torrent" "/output/directory_size_$NODE_NAME.prom"
/scripts/directory-size.sh "/mnt/hdd/ha" "/output/directory_size_$NODE_NAME.prom"
/scripts/directory-size.sh "/mnt/ssd/na" "/output/directory_size_$NODE_NAME.prom"
/scripts/directory-size.sh "/mnt/ssd/ha" "/output/directory_size_$NODE_NAME.prom"
Expand Down

0 comments on commit e5a5d98

Please sign in to comment.