diff options
| author | Kyle Evans <kevans@FreeBSD.org> | 2020-10-18 23:42:00 +0000 |
|---|---|---|
| committer | Kyle Evans <kevans@FreeBSD.org> | 2020-10-18 23:42:00 +0000 |
| commit | 513bd2fc81f9a9abad90184dee0af1dafbb55fbe (patch) | |
| tree | bc75ef80ae061cedd58a7104c7e80d626599515c /lib/libbe | |
| parent | 5773e924e791dfe8cc13049cefbf5f99aab6cc66 (diff) | |
Notes
Diffstat (limited to 'lib/libbe')
| -rw-r--r-- | lib/libbe/libbe.3 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/libbe/libbe.3 b/lib/libbe/libbe.3 index 2ace6b361e69..2989aa9daa5c 100644 --- a/lib/libbe/libbe.3 +++ b/lib/libbe/libbe.3 @@ -58,6 +58,9 @@ .Ft const char * Ns .Fn be_root_path "libbe_handle_t *hdl" .Pp +.Ft int Ns +.Fn be_snapshot "libbe_handle_t *hdl" "const char *be_name" "const char *snap_name" "bool recursive" "char *result" +.Pp .Ft bool Ns .Fn be_is_auto_snapshot_name "libbe_handle_t *hdl" "const char *snap" .Pp @@ -220,6 +223,30 @@ The function returns the boot environment root path. .Pp The +.Fn be_snapshot +function creates a snapshot of +.Fa be_name +named +.Fa snap_name . +A +.Dv NULL +.Fa snap_name +may be used, indicating that +.Fn be_snaphot +should derive the snapshot name from the current date and time. +If +.Fa recursive +is set, then +.Fn be_snapshot +will recursively snapshot the dataset. +If +.Fa result +is not +.Dv NULL , +then it will be populated with the final +.Dq Fa be_name Ns @ Ns Fa snap_name . +.Pp +The .Fn be_is_auto_snapshot_name function is used to determine if the given snapshot name matches the format that the |
