From 2fc0aca8fd29cc83bb871a01b8a26e49f78362bf Mon Sep 17 00:00:00 2001 From: Otho Date: Sun, 20 Nov 2022 20:06:47 -0500 Subject: [PATCH] Added test mode to create function. --- backup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index ffc6758..8b05e27 100644 --- a/backup.sh +++ b/backup.sh @@ -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()