Commit dd489ede authored by Robert Ricci's avatar Robert Ricci

Add a simple ZFS snapshotter

parent dab75610
#!/bin/sh
ZFS=/sbin/zfs
SRCVOL=$1
if ! [ ${1:+1} ]
then
echo "ERROR: Need source volume"
exit 1;
fi
SNAP=snappy-`date +%s`
$ZFS snapshot $SRCVOL@$SNAP
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment