Skip to content

Commit 8b1ad97

Browse files
committed
default $REMZFS to $ZFS; clarify shell reqs; (c)2015
1 parent 31e7a6e commit 8b1ad97

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

zfs-backup.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
#!/usr/bin/env ksh
2-
# /usr/xpg4/bin/sh and /bin/bash also work; /bin/sh does not
2+
# Needs a POSIX-compatible sh, like ash (Debian & FreeBSD /bin/sh), ksh, or
3+
# bash. On Solaris 10 you need to use /usr/xpg4/bin/sh (the POSIX shell) or
4+
# /bin/ksh -- its /bin/sh is an ancient Bourne shell, which does not work.
35

46
# backup script to replicate a ZFS filesystem and its children to another
57
# server via zfs snapshots and zfs send/receive
68
#
79
# SMF manifests welcome!
810
#
11+
# v0.4 (unreleased) - misc. fixes; portability & doc improvements
912
# v0.3 - cmdline options and cfg file support
1013
# v0.2 - multiple datasets
1114
# v0.1 - initial working version
1215

13-
# Copyright (c) 2009-13 Andrew Daugherity <[email protected]>
16+
# Copyright (c) 2009-15 Andrew Daugherity <[email protected]>
1417
# All rights reserved.
1518
#
1619
# Redistribution and use in source and binary forms, with or without
@@ -75,7 +78,7 @@ REMUSER="zfsbak"
7578
# special case: when $REMHOST=localhost, ssh is bypassed
7679
REMHOST="backupserver.my.domain"
7780
REMPOOL="backuppool"
78-
REMZFS="/usr/sbin/zfs"
81+
REMZFS="$ZFS"
7982

8083

8184
usage() {

0 commit comments

Comments
 (0)