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:
14
rsync-backup/rsync-backup.conf.example
Normal file
14
rsync-backup/rsync-backup.conf.example
Normal 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=''
|
Reference in New Issue
Block a user