Added rsync-backup.sh script and example config

This script can be executed in a cronjob and to regularly backup certain predefined files. AFter backing up, the script will send an email to inform the admin about the backup.
This commit is contained in:
2020-04-05 15:43:32 +02:00
commit 17baa237f9
2 changed files with 92 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#################################################################
# Config
#################################################################
EMAIL='' # Send confirmation email to this address
SSH_HOST='' # Target host
SSH_USER='' # User on target host
SSH_KEY='' # location of SSH key
SSH_PORT='22'
declare -a SRC_DIRS=(
#"/home"
)
DST_DIR=''