zfs-backup/zb-snap

9 lines
146 B
Bash
Executable file

#!/bin/sh
if [ -z "$1" ] ; then
echo "usage: $0 <zfs_volume>" >&2
exit 1
fi
echo exec zfs snapshot "${1}@zb-`date '+%F %T %z' |tr '+ ' 'p_'`"