Dennis
17baa237f9
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.
15 lines
346 B
Plaintext
15 lines
346 B
Plaintext
#################################################################
|
|
# 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=''
|