diff --git a/pages/06.bitwarden/docs.md b/pages/06.bitwarden/docs.md index 1d6a09f..5bbbc44 100644 --- a/pages/06.bitwarden/docs.md +++ b/pages/06.bitwarden/docs.md @@ -60,13 +60,13 @@ Link your gdrive to the account by running `gdrive list` and following the instr Create a folder called `Bitwarden` and get its id by running `gdrive list`. -Upload using +Create upload script named `bw.sh` in the home directory and make it executable `chmod +x ~/bw.sh` ```sh -gdrive upload --parent $FOLDER_ID --name production_$(date +%F-%H:%M).sqlite3 ~/webapps/warden/db/production.sqlite3 +~/bin/gdrive upload upload --parent $FOLDER_ID --name production_$(date +%F-%H:%M).sqlite3 ~/webapps/warden/db/production.sqlite3 ``` #### Automate Backups Edit crontab using `export VISUAL=nano; crontab -e` and add the following line ```sh -0 1 * * * gdrive upload --parent $FOLDER_ID --name production_$(date +%F-%H:%M).sqlite3 ~/webapps/warden/db/production.sqlite3 +0 1 * * * ~/bw.sh ```