From a6f9635fcc4bf39635f42527f5f07ad6cac97dad Mon Sep 17 00:00:00 2001 From: tanshu Date: Sun, 26 Nov 2017 04:18:01 +0000 Subject: [PATCH] (Grav GitSync) Automatic Commit from tanshu --- pages/06.bitwarden/docs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ```