From 5c425e4832cac30c3ce4e64db310b56d7e7af607 Mon Sep 17 00:00:00 2001 From: Otho Date: Mon, 16 Jan 2023 19:55:20 -0500 Subject: [PATCH] Fixed order for remote dataset grab. --- backup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backup.sh b/backup.sh index 732cbf1..77a9ddb 100755 --- a/backup.sh +++ b/backup.sh @@ -188,8 +188,8 @@ send_latest() esac fi for dataset in $SEND_DATASETS; do - dataset="`echo $dataset|cut -d: -f1`" - remote_dataset="`echo $dataset|cut -d: -f2`" + remote_dataset=`echo $dataset|cut -d: -f2` + dataset=`echo $dataset|cut -d: -f1` debug "Processing $dataset (remote $remote_dataset)." origin_snapshot=`get_latest_snapshot $dataset` if [ $BG_TEST_MODE = "TRUE" ]; then @@ -219,8 +219,8 @@ send_increment() esac fi for dataset in $SEND_DATASETS; do - dataset="`echo $dataset|cut -d: -f1`" - remote_dataset="`echo $dataset|cut -d: -f2`" + remote_dataset=`echo $dataset|cut -d: -f2` + dataset=`echo $dataset|cut -d: -f1` origin_snapshot=`get_latest_snapshot` remote_snapshot=`get_latest_remote_snapshot` if [ $BG_TEST_MODE = "TRUE" ]; then