mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-22 10:15:07 +00:00
Added test mode to create function.
This commit is contained in:
parent
36caad4ba5
commit
2fc0aca8fd
@ -47,7 +47,12 @@ setup_mirror()
|
|||||||
create_snapshot()
|
create_snapshot()
|
||||||
{
|
{
|
||||||
id="`date -I`-`date +%s`"
|
id="`date -I`-`date +%s`"
|
||||||
|
if [ $BR_TEST_MODE = "TRUE" ]; then
|
||||||
|
echo zfs snapshot -r ${BR_ROOT}@${id}
|
||||||
|
else
|
||||||
zfs snapshot -r ${BR_ROOT}@${id}
|
zfs snapshot -r ${BR_ROOT}@${id}
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
send_single_snapshot()
|
send_single_snapshot()
|
||||||
|
Loading…
Reference in New Issue
Block a user