logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

vfs_shell_snap - Shell script callouts for snapshot creation and deletion

Author

       The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed
       by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.

Samba 4.22.3-Ubuntu-4.22.3+dfs                     07/21/2025                                  VFS_SHELL_SNAP(8)

Configuration

[share]vfsobjects=shell_snapshell_snap:checkpathcommand=snap_check_path.shshell_snap:createcommand=snap_create.shshell_snap:deletecommand=snap_delete.sh

       Samba's FSRVP server must be configured in the [global] section:

                     [global]registryshares=yesinclude=registry

Description

       This VFS module is part of the samba(8) suite.

       The vfs_shell_snap VFS provides shell-script callouts for snapshot creation and deletion operations
       issued by remote clients using the File Server Remote VSS Protocol (FSRVP).

       The following shell callouts may be configured in smb.conf:

       shell_snap:checkpathcommand

              •   Called when an FSRVP client wishes to check whether a given share supports snapshot
                  create/delete requests.

              •   The command is called with a single share_path argument.

              •   The command must return 0 if share_path is capable of being snapshotted.

       shell_snap:createcommand

              •   Called when an FSRVP client wishes to create a snapshot.

              •   The command is called with a single share_path argument.

              •   The command must return 0 status if the snapshot was successfully taken.

              •   The command must output the path of the newly created snapshot to stdout.

       shell_snap:deletecommand

              •   Called when an FSRVP client wishes to delete a snapshot.

              •   The command is called with base_share_path and snapshot_share_path arguments.

              •   The command must return 0 status if the snapshot was successfully removed.

       All commands are executed as the authenticated FSRVP client user.

       This module is stackable.

Name

       vfs_shell_snap - Shell script callouts for snapshot creation and deletion

Synopsis


       vfs objects = shell_snap

Version

       This man page is part of version 4.22.3-Ubuntu-4.22.3+dfsg-4ubuntu1 of the Samba suite.

See Also