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()