This commit is contained in:
@@ -33,6 +33,11 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: bitwarden-credentials
|
name: bitwarden-credentials
|
||||||
key: BW_CLIENTSECRET
|
key: BW_CLIENTSECRET
|
||||||
|
- name: BW_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: bitwarden-credentials
|
||||||
|
key: BW_PASSWORD
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: scripts
|
- name: scripts
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
|||||||
@@ -4,7 +4,8 @@ data:
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
bw config server https://bitwarden.tryton.geeraert.eu/
|
bw config server https://bitwarden.tryton.geeraert.eu/
|
||||||
bw login --apikey
|
bw login --apikey
|
||||||
bw list items >> /backup/backup_$(date "+%Y-%m-%d_%Hh-%m").json
|
export BW_key=$(bw unlock $BW_PASSWORD --raw)
|
||||||
|
bw list items --session $BW_key >> /backup/backup_$(date "+%Y-%m-%d_%Hh-%m").json
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
|
|||||||
Reference in New Issue
Block a user