From e66dca12f8fc0dbdb5191b3553c0070b38d8939e Mon Sep 17 00:00:00 2001 From: wbudic Date: Thu, 7 Mar 2019 12:41:12 +1100 Subject: [PATCH] Merging --- README.md | 4 +++- backupDBLifeLog.sh | 40 ++++++++++++++++++++++++++++++++++++++++ startDevWebServer.sh | 5 ++++- 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100755 backupDBLifeLog.sh diff --git a/README.md b/README.md index 9627fbb..241a1b1 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,6 @@ Application that keeps an everyday web CGI accessible log of database entries of various categories. Written in perl, easy to implement and modify. -## Warning - This application is currently onder development, since Aug, 2018 +## This application is currently onder development at the source code head, since Aug, 2018. +#Current usable is release-1.0. + diff --git a/backupDBLifeLog.sh b/backupDBLifeLog.sh new file mode 100755 index 0000000..8686b9e --- /dev/null +++ b/backupDBLifeLog.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# +# Following is an hardcoded script that can be used on your local machine +# to archive from server all the latest SQLite databases on the DB Life Log server. +# +# Usefull to cron, to auto backup the databases just in case. +# +# Programed by: Will Budic +# Open Source License -> https://choosealicense.com/licenses/isc/ + +#Example crontab -e entry for every three hours. +# crontab -> * */3 * * * ./backupDBLifeLog.sh > /dev/null 2>&1 + + + +DIR="/home/will/Documents/dbLifeLog" +NOW=`date +%Y%m%d` + +if [ ! -d "$DIR" ]; then + mkdir $DIR +fi +cd $DIR + +sftp will@nuc:/home/will/thttpd_dev/dbLifeLog/ <