simplify customization of envvars
This commit is contained in:
5
zfsbk.sh
5
zfsbk.sh
@ -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:"
|
||||||
|
|||||||
15
zfssnap.sh
15
zfssnap.sh
@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user