# Load default config and override config if correspond
load_config
source "$host_path/bacaprc" 2>/dev/null
host=`basename "$host_path"`
host_backup_path="$BACKUP_PATH/$host"
# Load default config and override config if correspond
load_config
source "$host_path/bacaprc" 2>/dev/null
host=`basename "$host_path"`
host_backup_path="$BACKUP_PATH/$host"
dst="$BACKUP_PATH/$host/$date"
src=`cat "$host_path/paths"`
[ "$host" != "$LOCALHOST" ] &&
dst="$BACKUP_PATH/$host/$date"
src=`cat "$host_path/paths"`
[ "$host" != "$LOCALHOST" ] &&
include="$host_path/includes"
current_link="$host_backup_path/current"
current_dir="$host_backup_path/`readlink \"$current_link\"`"
include="$host_path/includes"
current_link="$host_backup_path/current"
current_dir="$host_backup_path/`readlink \"$current_link\"`"
plog "-----------------------------------------------------------------"
plog "Backup for host $host"
plog "-----------------------------------------------------------------"
plog "-----------------------------------------------------------------"
plog "Backup for host $host"
plog "-----------------------------------------------------------------"
perror "$host is down, skipping..." &&
continue
[ -r "$exclude" ] &&
extra_flags="--exclude-from=$exclude --delete-excluded"
[ -r "$include" ] &&
extra_flags="$extra_flags --include-from=$include"
perror "$host is down, skipping..." &&
continue
[ -r "$exclude" ] &&
extra_flags="--exclude-from=$exclude --delete-excluded"
[ -r "$include" ] &&
extra_flags="$extra_flags --include-from=$include"