27 lines
989 B
Text
27 lines
989 B
Text
#Backup server settings
|
|
|
|
backup_server="192.168.0.10"
|
|
backup_server_port="22"
|
|
backup_server_ipv=4
|
|
backup_server_dataset="tank/backups"
|
|
backup_server_delete_old_snaps=y
|
|
backup_server_number_keep_snaps=31
|
|
|
|
shape_megabytes=20
|
|
#Source server settings
|
|
#DO NOT CHANGE zfsnap_days_keep_snaps AFTER FIRST FULL BACKUP!
|
|
|
|
zfsnap_enable=y
|
|
zfsnap_days_keep_snaps=7
|
|
|
|
running_containers=$(incus list | grep RUNNING | awk {'print $2'})
|
|
stopped_containers=$(incus list | grep STOPPED | awk {'print $2'})
|
|
|
|
excluded_strings="deluge\|testing"
|
|
|
|
if [ -z "$stopped_containers" ]
|
|
then
|
|
source_datasets="$(zfs list | awk {'print $1'} | grep "crypt/lxd/storage/containers" | grep -ve "crypt/lxd/storage/containers$" | grep -e "$running_containers" | grep -ve "$excluded_strings")"
|
|
else
|
|
source_datasets="$(zfs list | awk {'print $1'} | grep "crypt/lxd/storage/containers" | grep -ve "crypt/lxd/storage/containers$" | grep -e "$running_containers" | grep -ve "$stopped_containers" | grep -ve "$excluded_strings")"
|
|
fi
|