Files
Backup_kube/bitwarden/bitwarden_export_scripts.configmap.yaml
T
pi-ux-ce 2ea001148f
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
use password and APIKEY
2024-10-29 14:59:13 +00:00

13 lines
372 B
YAML

apiVersion: v1
data:
export_bitwarden.sh: |
#!/usr/bin/env bash
bw config server https://bitwarden.tryton.geeraert.eu/
bw login --apikey
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
metadata:
creationTimestamp: null
name: bitwarden-export-scripts