(Grav GitSync) Automatic Commit from tanshu

This commit is contained in:
tanshu 2017-11-26 04:18:01 +00:00 committed by GitSync
parent 6d989b9865
commit a6f9635fcc

View File

@ -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`. 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 ```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 #### Automate Backups
Edit crontab using `export VISUAL=nano; crontab -e` and add the following line Edit crontab using `export VISUAL=nano; crontab -e` and add the following line
```sh ```sh
0 1 * * * gdrive upload --parent $FOLDER_ID --name production_$(date +%F-%H:%M).sqlite3 ~/webapps/warden/db/production.sqlite3 0 1 * * * ~/bw.sh
``` ```