Command to run before snapshots are taken on the source dataset, e.g. for database locking/flushing. See also postsnap.
Declarations
Type
null or string
Default
null
Example
''${pkgs.mariadb}/bin/mysql -e "set autocommit=0;flush tables with read lock;\\! ${pkgs.coreutils}/bin/sleep 600" & ${pkgs.coreutils}/bin/echo $! > /tmp/mariadblock.pid ; sleep 10''