Skip to content

Commit

Permalink
💾 reduce backup frequency to every-6-hours
Browse files Browse the repository at this point in the history
See #97. Turns out it's not bandwidth that is costly right now, but
API calls to 'download file by name'... probably due to 'restic check'
without cache?!
  • Loading branch information
C0nsultant committed Feb 3, 2025
1 parent 54e74db commit b7cfcf5
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions flux/apps/bitwarden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ metadata:
name: bitwarden-postgresql
namespace: default
spec:
schedule: "23 * * * *"
schedule: "23 4/6 * * *"
task:
name: postgres-backup-15.1
repository:
Expand All @@ -168,9 +168,9 @@ spec:
name: bitwarden-postgresql
retentionPolicy:
name: "staggered"
keepHourly: 24
keepHourly: 6
keepDaily: 14
keepWeekly: 12
keepMonthly: 6
keepYearly: 2
prune: false
prune: true
6 changes: 3 additions & 3 deletions flux/apps/firefly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ metadata:
name: firefly-postgresql
namespace: default
spec:
schedule: "11 * * * *"
schedule: "11 4/6 * * *"
task:
name: postgres-backup-17.2
repository:
Expand All @@ -104,9 +104,9 @@ spec:
name: firefly-postgresql
retentionPolicy:
name: "staggered"
keepHourly: 24
keepHourly: 6
keepDaily: 14
keepWeekly: 12
keepMonthly: 6
keepYearly: 2
prune: false
prune: true
6 changes: 3 additions & 3 deletions flux/apps/fresh-rss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ metadata:
name: fresh-rss-postgresql
namespace: default
spec:
schedule: "17 * * * *"
schedule: "17 4/6 * * *"
task:
name: postgres-backup-17.2
repository:
Expand All @@ -139,9 +139,9 @@ spec:
name: fresh-rss-postgresql
retentionPolicy:
name: "staggered"
keepHourly: 24
keepHourly: 6
keepDaily: 14
keepWeekly: 12
keepMonthly: 6
keepYearly: 2
prune: false
prune: true
12 changes: 6 additions & 6 deletions flux/apps/immich.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ spec:
name: b2-fotos-repo
namespace: stash-system
timeOut: 24h
schedule: "49 * * * *"
schedule: "49 2/6 * * *"
target:
ref:
apiVersion: apps/v1
Expand All @@ -232,12 +232,12 @@ spec:
- /mnt/tank/Bilder
retentionPolicy:
name: "staggered"
keepHourly: 24
keepHourly: 6
keepDaily: 14
keepWeekly: 12
keepMonthly: 6
keepYearly: 2
prune: false
prune: true
---
apiVersion: appcatalog.appscode.com/v1alpha1
kind: AppBinding
Expand All @@ -260,7 +260,7 @@ metadata:
name: immich-postgresql
namespace: default
spec:
schedule: "19 * * * *"
schedule: "19 4/6 * * *"
task:
name: postgres-backup-16.1
repository:
Expand All @@ -274,9 +274,9 @@ spec:
name: immich-postgresql
retentionPolicy:
name: "staggered"
keepHourly: 24
keepHourly: 6
keepDaily: 14
keepWeekly: 12
keepMonthly: 6
keepYearly: 2
prune: false
prune: true
6 changes: 3 additions & 3 deletions flux/apps/n8n.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ metadata:
name: n8n-postgresql
namespace: default
spec:
schedule: "53 * * * *"
schedule: "53 4/6 * * *"
task:
name: postgres-backup-17.2
repository:
Expand All @@ -163,9 +163,9 @@ spec:
name: n8n-postgresql
retentionPolicy:
name: "staggered"
keepHourly: 24
keepHourly: 6
keepDaily: 14
keepWeekly: 12
keepMonthly: 6
keepYearly: 2
prune: false
prune: true
12 changes: 6 additions & 6 deletions flux/apps/nextcloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ spec:
name: b2-nextcloud-repo
namespace: stash-system
timeOut: 12h
schedule: "14 * * * *"
schedule: "14 1/6 * * *"
target:
ref:
apiVersion: apps/v1
Expand All @@ -1433,12 +1433,12 @@ spec:
- /var/www/html/data/*/files/auto-upload
retentionPolicy:
name: "staggered"
keepHourly: 24
keepHourly: 6
keepDaily: 14
keepWeekly: 12
keepMonthly: 6
keepYearly: 2
prune: false
prune: true
---
apiVersion: appcatalog.appscode.com/v1alpha1
kind: AppBinding
Expand All @@ -1461,7 +1461,7 @@ metadata:
name: nextcloud-postgresql
namespace: default
spec:
schedule: "33 * * * *"
schedule: "33 4/6 * * *"
task:
name: postgres-backup-16.1
repository:
Expand All @@ -1475,9 +1475,9 @@ spec:
name: nextcloud-postgresql
retentionPolicy:
name: "staggered"
keepHourly: 24
keepHourly: 6
keepDaily: 14
keepWeekly: 12
keepMonthly: 6
keepYearly: 2
prune: false
prune: true
12 changes: 6 additions & 6 deletions flux/apps/paperless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ spec:
name: b2-dokumente-repo
namespace: stash-system
timeOut: 2h
schedule: "32 * * * *"
schedule: "32 0/6 * * *"
target:
ref:
apiVersion: apps/v1
Expand All @@ -190,12 +190,12 @@ spec:
containerName: main
retentionPolicy:
name: "staggered"
keepHourly: 24
keepHourly: 6
keepDaily: 14
keepWeekly: 12
keepMonthly: 6
keepYearly: 2
prune: false
prune: true
---
apiVersion: appcatalog.appscode.com/v1alpha1
kind: AppBinding
Expand All @@ -218,7 +218,7 @@ metadata:
name: paperless-ngx-postgresql
namespace: default
spec:
schedule: "39 * * * *"
schedule: "39 4/6 * * *"
task:
name: postgres-backup-15.1
repository:
Expand All @@ -232,9 +232,9 @@ spec:
name: paperless-ngx-postgresql
retentionPolicy:
name: "staggered"
keepHourly: 24
keepHourly: 6
keepDaily: 14
keepWeekly: 12
keepMonthly: 6
keepYearly: 2
prune: false
prune: true

0 comments on commit b7cfcf5

Please sign in to comment.