Add support for remote backup server.

This commit is contained in:
2018-12-02 21:46:09 +01:00
parent b8522b35f9
commit bb32613273
3 changed files with 98 additions and 45 deletions

View File

@@ -47,6 +47,12 @@ hosts_base_dir=$crontab_base_dir/hosts
extern_usb_disk=false
extern_sata_disk=false
intern_disk=false
# - remote_disk
# -
# - - You need a fstab-entry in order to mount the backup partition
# - - Configure 'backup_mountpoint'
# -
remote_disk=true
## - if backup partion cannot be determined, try this one..
## -
@@ -108,6 +114,8 @@ if $extern_usb_disk || $extern_sata_disk ; then
fi
fi
elif $remote_disk ; then
backup_resource="$(grep "$backup_mountpoint" /etc/fstab | grep -v -E "\s*#" | awk '{print$1}' | head -1)"
elif $intern_disk ; then
if $crypto_backup_device ; then
backup_raw_partition=$_backup_partition
@@ -182,7 +190,7 @@ _DEBUG=0
#
_TEST=0
export LOCK_DIR admin_email from_address content_type company hosts_base_dir intern_disk extern_usb_disk extern_sata_disk crypto_backup_device backup_base_dir backup_partition check_mountpoint info_file logFile logDuration right_tabstop disk_label_log_file force_level_1 MIRROR ARCHIVE days _DEBUG _TEST
export LOCK_DIR admin_email from_address content_type company hosts_base_dir intern_disk extern_usb_disk extern_sata_disk crypto_backup_device backup_base_dir backup_partition backup_resource check_mountpoint info_file logFile logDuration right_tabstop disk_label_log_file force_level_1 MIRROR ARCHIVE days _DEBUG _TEST
#
# ------------------ Ende Variable ------------------ #