Added test mode to create function.

This commit is contained in:
Otho 2022-11-20 20:06:47 -05:00
parent 36caad4ba5
commit 2fc0aca8fd
Signed by: Otho
GPG Key ID: 16C720CD3BBE21D9

View File

@ -47,7 +47,12 @@ setup_mirror()
create_snapshot()
{
id="`date -I`-`date +%s`"
zfs snapshot -r ${BR_ROOT}@${id}
if [ $BR_TEST_MODE = "TRUE" ]; then
echo zfs snapshot -r ${BR_ROOT}@${id}
else
zfs snapshot -r ${BR_ROOT}@${id}
fi
}
send_single_snapshot()