mirror of
https://asciireactor.com/o4data/zfs-backup.git
synced 2024-11-22 04:35:06 +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`"
|
||||||
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()
|
send_single_snapshot()
|
||||||
|
Loading…
Reference in New Issue
Block a user