config file added
This commit is contained in:
parent
3b0dbbf2d3
commit
3d66a74f20
14
backup.config
Normal file
14
backup.config
Normal 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"
|
||||||
|
|
||||||
20
backup.sh
20
backup.sh
@ -1,14 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
IFS=$'\n'
|
. ./backup.config
|
||||||
NOW=$(date +"%Y-%m-%d_%H:%M")
|
|
||||||
LOG="/root/backup_$NOW.log"
|
#IFS=$'\n'
|
||||||
USB_DISK=""
|
#NOW=$(date +"%Y-%m-%d_%H:%M")
|
||||||
USB_PARTITION=""
|
#LOG="/root/backup_$NOW.log"
|
||||||
USB_MOUNT="/mnt/usb"
|
#USB_DISK=""
|
||||||
LUKS_PASS_URL="192.168.1.199:9999/andthepasswordis"
|
#USB_PARTITION=""
|
||||||
LUKS_PASS=""
|
#USB_MOUNT="/mnt/usb"
|
||||||
MAIL_RECIPIENT="ste.vaidis@gmail.com"
|
#LUKS_PASS_URL="192.168.1.199:9999/andthepasswordis"
|
||||||
|
#LUKS_PASS=""
|
||||||
|
#MAIL_RECIPIENT="ste.vaidis@gmail.com"
|
||||||
|
|
||||||
function log() {
|
function log() {
|
||||||
echo -e "`date +'%d/%m/%Y %H:%M:%S'` | $1"
|
echo -e "`date +'%d/%m/%Y %H:%M:%S'` | $1"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user