This is a Bitwarden server API implementation written in Rust compatible with upstream Bitwarden clients., perfect for self-hosted deployment where running the official resource-heavy service might not be ideal. Image is based on Rust implementation of Bitwarden API. For individuals: Bitwarden is the safest way to guard against password theft by creating and managing strong, unique passwords across all your devices. For businesses: Bitwarden offers powerful, secure password management with complete administrative control to meet compliance requirements. Apowersoft mac screen recorder download. The base image used to serving static content such as the Bitwarden web vault.

bitwarden_rs-backup.sh


#!/bin/bash |
export LC_ALL=C |
now=$(date +'%Y%m%d-%H%M%S') |
parent_dir='/data/bitwarden' |
backups_dir='${parent_dir}/backups' |
log_file='${backups_dir}/backup-progress.log.${now}' |
tmp_sqlite_backup='backups/db.sqlite3.${now}' |
archive='backups/backup.tar.gz.${now}' |
error () { |
printf'%s: %sn''$(basename '${BASH_SOURCE}')''${1}'>&2 |
exit 1 |
} |
trap'error 'An unexpected error occurred.'' ERR |
take_backup () { |
cd'${parent_dir}' |
sqlite3 db.sqlite3 '.backup '${tmp_sqlite_backup}'' |
/bin/tar czf '${archive}''${tmp_sqlite_backup}' attachments |
rm '${tmp_sqlite_backup}' |
find '${backups_dir}/' -type f -mtime +30 -exec rm {} ; |
} |
printf'n' |
printf'nBitwarden Backup' |
printf'n' |
printf'nBackup in progress..' |
take_backup 2>'${log_file}' |
if [[ -s'${log_file}' ]] |
then |
printf'nBackup failure! Check ${log_file} for more information.' |
printf'nnn' |
else |
rm '${log_file}' |
printf'..SUCCESS!n' |
printf'Backup created at ${backups_dir}/backup.tar.gz.${now}' |
printf'nnn' |
fi |
Bitwarden Github 2fa
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
