https://github.com/pschmitt/bw-backup
Brain-dead simple bitwarden backups (including attachments!)
https://github.com/pschmitt/bw-backup
bitwarden bitwarden-backup bitwarden-cli
Last synced: 12 months ago
JSON representation
Brain-dead simple bitwarden backups (including attachments!)
- Host: GitHub
- URL: https://github.com/pschmitt/bw-backup
- Owner: pschmitt
- Created: 2024-10-21T14:11:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-22T08:06:45.000Z (over 1 year ago)
- Last Synced: 2025-06-17T23:51:20.292Z (about 1 year ago)
- Topics: bitwarden, bitwarden-backup, bitwarden-cli
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bw-backup
## Usage
```shell
podman run -it --rm \
-v /tmp/data:/data \
-e BW_CLIENTID=user.xxxx \
-e BW_CLIENTSECRET=xxxx \
-e BW_PASSWORD=xxxx \
-e ENCRYPTION_PASSPHRASE=mySecret1234 \
-e KEEP=10 \
-e CRON="0 23 * * *" \
ghcr.io/pschmitt/bw-backup:latest
```
`ENCRIPTION_PASSPHRASE` is optional. If set the backups will be encrypted with
the given passphrase.
`KEEP` is optional. If set the script will keep the last `KEEP` backups.
`CRON` is optional. If set the script will run the backup script periodically.
## How do I decrypt my backup?
```shell
gpg --batch --yes --passphrase "mySecret1234" --decrypt \
--output decrypted.tar.gz \
data/bw-export-xxx.tar.gz.gpg
```
There's also a wrapper script for that: [decrypt.sh](decrypt.sh)