From 07d48d3031c1216780544607392c9ccd01b48d17 Mon Sep 17 00:00:00 2001 From: Otho Date: Thu, 24 Nov 2022 00:29:33 -0500 Subject: [PATCH] Removed unused function. --- backup.sh | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/backup.sh b/backup.sh index cddd1b8..08558a9 100755 --- a/backup.sh +++ b/backup.sh @@ -21,25 +21,6 @@ list_active_datasets() zfs list | tail -n +2 | cut -d' ' -f1|grep ${BG_ROOT} } -read_datasets() { - while read BG_REMOTE_ADDR BG_REMOTE_PORT BG_REMOTE_ROOT BG_REMOTE_USER; do - case $BG_REMOTE_ADDR in - \#*) continue;; - esac - if [ $BG_TEST_MODE = "TRUE" ]; then - echo zfs send -R ${BG_ROOT}@${BG_NEW_SNAPSHOT} - echo ssh -i ~/.ssh/id_rsa -o port=${BG_REMOTE_PORT} \ - ${BG_REMOTE_USER}@${BG_REMOTE_ADDR} \ - zfs receive -vu ${BG_REMOTE_ROOT} - else - zfs send -R ${BG_ROOT}@${BG_NEW_SNAPSHOT} | - ssh -i ~/.ssh/id_rsa -o port=${BG_REMOTE_PORT} \ - ${BG_REMOTE_USER}@${BG_REMOTE_ADDR} \ - zfs receive -dvu ${BG_REMOTE_ROOT} - fi - done < ${datasets_file} -} - # compare_datasets() create_datasets() {