example conf for zfs-backup-mm script and copy_containers is now compatible for instalations, where is my backup-script used
parent
d32f287de5
commit
68572fcea4
@ -0,0 +1,28 @@
|
||||
#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=$(lxc list | grep RUNNING | awk {'print $2'})
|
||||
stopped_containers=$(lxc 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
|
||||
|
Loading…
Reference in New Issue