Removed unused function.

This commit is contained in:
Otho 2022-11-24 00:29:33 -05:00
parent dec31cec5a
commit 07d48d3031
Signed by: Otho
GPG Key ID: 16C720CD3BBE21D9

View File

@ -21,25 +21,6 @@ list_active_datasets()
zfs list | tail -n +2 | cut -d' ' -f1|grep ${BG_ROOT} 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() # compare_datasets()
create_datasets() { create_datasets() {