Github Bitwarden



Desktop

Bitwarden Rs Wiki

bitwarden_rs-backup.sh
Github Bitwarden
#!/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 Git

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Bitwarden Api

If you wanting something new to be added or changed in Bitwarden, this is the place to ask.

Github Bitwarden Extension

  • Docker compose for bitwardenrs on synology. GitHub Gist: instantly share code, notes, and snippets.
  • Bitwarden, the open source password manager, makes it easy to generate and store unique passwords for any browser or device. Create your free account on the platform with end-to-end encryption and flexible integration options for you or your business.