Created
August 5, 2014 22:56
-
-
Save dnozay/2dc903fb19a04f3d1fd2 to your computer and use it in GitHub Desktop.
zfs-backup patch for centos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From dec16d764a5bb0a45b16fbb445dce9a8858fc80d Mon Sep 17 00:00:00 2001 | |
From: damien <damien@localhost> | |
Date: Tue, 5 Aug 2014 15:54:14 -0700 | |
Subject: [PATCH] [trivial] massage for centos | |
--- | |
zfs-backup.sh | 4 ++-- | |
1 files changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/zfs-backup.sh b/zfs-backup.sh | |
index 6d61f17..6eaa55f 100755 | |
--- a/zfs-backup.sh | |
+++ b/zfs-backup.sh | |
@@ -1,4 +1,4 @@ | |
-#!/bin/ksh | |
+#!/bin/bash | |
# /usr/xpg4/bin/sh and /bin/bash also work; /bin/sh does not | |
# backup script to replicate a ZFS filesystem and its children to another | |
@@ -209,7 +209,7 @@ do_backup() { | |
echo "would run: $ZFS send -R -I $snap1 $DATASET@$snap2 |" | |
echo " ssh $REMUSER@$REMHOST $REMZFS recv $RECV_OPT -vF $REMPOOL" | |
else | |
- if ! pfexec $ZFS send -R -I $snap1 $DATASET@$snap2 | \ | |
+ if ! $ZFS send -R -I $snap1 $DATASET@$snap2 | \ | |
ssh $REMUSER@$REMHOST $REMZFS recv $VERBOSE $RECV_OPT -F $REMPOOL; then | |
echo 1>&2 "Error sending snapshot." | |
touch $LOCK | |
-- | |
1.7.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment