1
0

simplify customization of envvars

This commit is contained in:
michele
2014-03-20 13:03:21 +01:00
parent 172e1857c6
commit 60edb5e5ab
2 changed files with 14 additions and 6 deletions

View File

@ -1,10 +1,11 @@
#! /bin/sh #! /bin/sh
# change this to the name of your ZFS pool.
zpool="zroot"
# make a backup collection having 1 full and N-1 incremental backups. # make a backup collection having 1 full and N-1 incremental backups.
# set to 1 to avoid incrementals and always take full dumps. # set to 1 to avoid incrementals and always take full dumps.
max_incremental=4 max_incremental=4
zpool="zroot"
destination_store="u84693@u84693.your-backup.de:calaf/"
usage () { usage () {
echo "Usage:" echo "Usage:"

View File

@ -1,13 +1,20 @@
#! /bin/sh #! /bin/sh
# change this to the name of your ZFS pool.
zpool="zroot"
# names of the DATASETs to exclude (datasets, not mountpoints!)
# can override this list at runtime with EXCLUDES envvar.
# can extend this list at runtime with EXTRA_EXCLUDES envvar.
excludes="/usr/ports /usr/src /backups"
# You do not want to edit anything below here
tstamp=`date +%Y%m%d-%H%M%S` tstamp=`date +%Y%m%d-%H%M%S`
label_pfx="zbk-" label_pfx="zbk-"
usrlabel=$1 usrlabel=$1
maxnum=$2 maxnum=$2
zpool="zroot"
# names of the DATASETs to exclude (datasets, not mountpoints!)
excludes="/usr/ports /usr/src /backups"
usage () { usage () {
echo Usage: echo Usage: