Commit febc7e8c authored by root auf jupiter's avatar root auf jupiter

Befehlausgabe für aktualisieren vom Remote.

parent 4ef006da
Pipeline #507 failed with stages
in 23 seconds
......@@ -80,7 +80,7 @@ PROP="de.elaon:backuptarget"
REMUSER="root"
# special case: when $REMHOST=localhost, ssh is bypassed
REMHOST="172.16.1.1"
REMPOOL="storage/backup/vms"
REMPOOL="storage/backup/jupiter"
REMZFS="$ZFS"
......@@ -205,6 +205,7 @@ do_backup() {
# 'ssh -n' for the actual zfs recv.
newest_remote="$(ssh -n $REMUSER@$REMHOST $REMZFS list -t snapshot -H -S creation -o name -d 1 $TARGET | grep $TAG | head -1)"
err_msg="Error fetching remote snapshot listing via ssh to $REMUSER@$REMHOST."
err_msg="Befehl: zfs send -vR ${DATASET}@${snap2} | ssh ${REMUSER}@${REMHOST} zfs recv -dvF $REMPOOL"
fi
if [ -z $newest_remote ]; then
echo "$err_msg" >&2
......@@ -222,6 +223,7 @@ do_backup() {
echo "Manually run zfs send/recv to bring $TARGET on $REMHOST"
echo "to a snapshot that exists on this host (newest local snapshot with the"
echo "tag $TAG is $snap2)."
echo "Befehl: zfs send -I remote -vR ${DATASET}@${snap2} | ssh ${REMUSER}@${REMHOST} zfs recv -dvF $REMPOOL"
[ $DEBUG ] || touch $LOCK
return 1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment