ttionya / vaultwarden-backup

Backup vaultwarden (formerly known as bitwarden_rs) SQLite3/PostgreSQL/MySQL/MariaDB database by rclone. (Docker)
MIT License
1.1k stars 122 forks source link

support GPG encryption #152

Open ttionya opened 6 months ago

ttionya commented 6 months ago

135 #105

ttionya commented 6 months ago

I have released version v1.20.0-beta.0. After my initial testing, it seems to work well, but I need more testing to ensure it works under various scenarios. Additionally, I haven't finished writing the documentation yet, but I will continue to work on it. Once the documentation is complete and I feel that testing is sufficient, I will release the stable version.

Here's a brief description of how to use GPG and some notes:

Added the environment variable GPG_BASE64_PUBKEY. Please use base64 -w 0 <your public key file> to generate it. Once this variable is configured, GPG will be enabled, and the ZIP_PASSWORD will no longer be used.

To decrypt, please use the command gpg --decrypt backup.zip.gpg > backup.zip.

ttionya commented 6 months ago

I have released version v1.20.0-beta.0. After my initial testing, it seems to work well, but I need more testing to ensure it works under various scenarios. Additionally, I haven't finished writing the documentation yet, but I will continue to work on it. Once the documentation is complete and I feel that testing is sufficient, I will release the stable version.

Here's a brief description of how to use GPG and some notes:

Added the environment variable GPG_BASE64_PUBKEY. Please use base64 -w 0 <your public key file> to generate it. Once this variable is configured, GPG will be enabled, and the ZIP_PASSWORD will no longer be used.

To decrypt, please use the command gpg --decrypt backup.zip.gpg > backup.zip.

@AtomAsking , GPG encryption is now available for use. Any help with testing would be greatly appreciated.