File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 4444 {{- end }}
4545
4646 # install CLI dependencies
47- hab pkg install jarvus/restic core/gzip core/curl
47+ hab pkg install core/gzip core/curl
48+
49+ # install restic
50+ hab pkg exec core/curl curl -L https://github.com/restic/restic/releases/download/v0.18.1/restic_0.18.1_linux_amd64.bz2 | bunzip2 > /bin/restic
51+ chmod +x /bin/restic
4852
4953 # get composite service name
5054 composite_svc_name=\"\$(hab svc status | tail -n +2 | awk '{print \$1}' | grep -- "-composite/" | cut -d '/' -f 1,2)\"
6670 --ignore-table=\"\${database_name}.sessions\" \
6771 \"\${database_name}\" \
6872 | hab pkg exec core/gzip gzip --rsyncable \
69- | hab pkg exec jarvus/restic restic backup \
73+ | restic backup \
7074 --host '{{ .Release.Name }}' \
7175 --stdin \
7276 --stdin-filename database.sql.gz
@@ -77,15 +81,15 @@ spec:
7781
7882 # snapshot data
7983 echo 'Snapshotting site data'
80- hab pkg exec jarvus/restic restic backup \
84+ restic backup \
8185 /hab/svc/{{ .Values.site.svcName }}/data \
8286 --host '{{ .Release.Name }}' \
8387 --exclude='*.log' \
8488 --exclude='/hab/svc/{{ .Values.site.svcName }}/data/media/*x*/**'
8589
8690 # prune aged snapshots
8791 echo 'Pruning snapshots'
88- hab pkg exec jarvus/restic restic forget \
92+ restic forget \
8993 --host '{{ .Release.Name }}' \
9094 --keep-last {{ .Values.backups.prune.keepLast }} \
9195 --keep-daily {{ .Values.backups.prune.keepDaily }} \
You can’t perform that action at this time.
0 commit comments