config file added

This commit is contained in:
Ste Vaidis 2022-12-23 18:59:40 +02:00
parent 3b0dbbf2d3
commit 3d66a74f20
2 changed files with 25 additions and 9 deletions

14
backup.config Normal file
View File

@ -0,0 +1,14 @@
IFS=$'\n'
NOW=$(date +"%Y-%m-%d_%H:%M")
LOG="/root/backup_$NOW.log"
LUKS_PASS_URL="192.168.1.199:9999/andthepasswordis"
LUKS_PASS=""
USB_DISK=""
USB_PARTITION=""
USB_MOUNT="/mnt/usb"
MAIL_RECIPIENT="ste.vaidis@gmail.com"

View File

@ -1,14 +1,16 @@
#!/bin/bash
IFS=$'\n'
NOW=$(date +"%Y-%m-%d_%H:%M")
LOG="/root/backup_$NOW.log"
USB_DISK=""
USB_PARTITION=""
USB_MOUNT="/mnt/usb"
LUKS_PASS_URL="192.168.1.199:9999/andthepasswordis"
LUKS_PASS=""
MAIL_RECIPIENT="ste.vaidis@gmail.com"
. ./backup.config
#IFS=$'\n'
#NOW=$(date +"%Y-%m-%d_%H:%M")
#LOG="/root/backup_$NOW.log"
#USB_DISK=""
#USB_PARTITION=""
#USB_MOUNT="/mnt/usb"
#LUKS_PASS_URL="192.168.1.199:9999/andthepasswordis"
#LUKS_PASS=""
#MAIL_RECIPIENT="ste.vaidis@gmail.com"
function log() {
echo -e "`date +'%d/%m/%Y %H:%M:%S'` | $1"