44 lines
1.7 KiB
Bash
44 lines
1.7 KiB
Bash
# Von welchem Server soll ein Backup gemacht werden, Domain oder IP-Adresse
|
|
REMOTE_HOST='example.com'
|
|
|
|
# Mit welchem User soll backup gemacht werden. root ist empfohlen
|
|
REMOTE_USER='root'
|
|
|
|
# Wechle Ordner sollen gesichert werden als BASH-Array z.B. ("/home" "/var/www")
|
|
FOLDERS=()
|
|
|
|
# Wie lange sollen Backups gesichert bleiben z.B. 8W
|
|
# ==================================================
|
|
# Remove the incremental backup information in the destination
|
|
# directory that has been around longer than the given time.
|
|
# time_spec can be either an absolute time, like "2002-01-04", or
|
|
# a time interval. The time interval is an integer followed by
|
|
# the character s, m, h, D, W, M, or Y, indicating seconds, minutes,
|
|
# hours, days, weeks, months, or years respectively, or a
|
|
# number of these concatenated. For example, 32m means 32 minutes,
|
|
# and 3W2D10h7s means 3 weeks, 2 days, 10 hours, and 7 seconds.
|
|
# In this context, a month means 30 days, a year is 365
|
|
# days, and a day is always 86400 seconds.
|
|
DELETE_OLD_FILES='8W'
|
|
|
|
# Zu sichernde MySQL-Datenbanken als BASH-Array z.B. ("mail" "piwik" "mybb")
|
|
# Leere Array () => es werden keine MySQL-Datenbanken gesichert
|
|
MYSQL_DB=()
|
|
|
|
# in welchem Docker-Container läuft MySQL-Dienst?
|
|
# leer lassen wenn es direkt auf dem $REMOTE_HOST läuft
|
|
MYSQL_CONTAINER=''
|
|
|
|
# MySQL User
|
|
MYSQL_USER='root'
|
|
|
|
# MySQL Passwort
|
|
MYSQL_PASS='secret'
|
|
|
|
# Wo auf dem Remote Server soll SQL_Dump abgelegt werden.
|
|
# Dieser Ordner wird zusammen mit $FOLDERS gesichert
|
|
MYSQL_DUMP_DIR='/var/backups/sqldump'
|
|
|
|
|
|
# Die Optionen die beim Backup eingesetzt werden
|
|
RDIFF_BACKUP_OPTS="--exclude-sockets --exclude-device-files --exclude-fifos --exclude-other-filesystems" |