Files
Backup_kube/bitwarden/bitwarden_export_scripts.configmap.yaml
T
2024-10-28 12:31:14 +00:00

12 lines
377 B
YAML

apiVersion: v1
data:
export_bitwarden.sh: |
#!/usr/bin/env bash
bw config server https://bitwarden.tryton.geeraert.eu/
export BW_key=$(bw login $BITWARDEN_USERNAME $BITWARDEN_PASSWORD --raw)
bw list items --session $BW_key >> /backup/backup_$(date "+%Y-%m-%d_%Hh-%m").json
kind: ConfigMap
metadata:
creationTimestamp: null
name: bitwarden-export-scripts