projects
/
zfs-ubuntu
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug that caused empty error messages to be emailed back
[zfs-ubuntu/.git]
/
zfs-replicate
diff --git
a/zfs-replicate
b/zfs-replicate
index b3f7cffd16d31dc3bbfa44df3ce5b7cdd2840b5f..9dfd9f8cbef7997e28bb6bd9ce72d164ce812250 100755
(executable)
--- a/
zfs-replicate
+++ b/
zfs-replicate
@@
-18,6
+18,13
@@
remote=$1
remote_fs=$2
remote_pool=${2%%/*}
remote_fs=$2
remote_pool=${2%%/*}
+# get the backup pool from the command line or the config file if not specified
+if [[ -n $3 ]]; then
+ backup_pool=$3
+else
+ backup_pool=${backup_pool%% *} # use the first backup pool if none specified
+fi
+
# Setup our cleanup and exit trap
cleanup() {
if [[ -e "$local_list" ]]; then
# Setup our cleanup and exit trap
cleanup() {
if [[ -e "$local_list" ]]; then