Files
Backup_kube/bitwarden/bitwarden_export_scripts.configmap.yaml
T
pi-ux-ce cb6ac10932
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
use configmap to run the script
2024-10-25 11:24:48 +01:00

12 lines
368 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 valvankart@orange.fr Impreza555 --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