zfs-backup/zb-snap
2015-12-26 18:06:09 +01:00

12 lines
222 B
Bash
Executable file

#!/bin/bash
source /etc/profile >/dev/null
[ -f "$HOME/.zb-rc" ] && source "$HOME/.zb-rc"
if [ -z "$1" ] ; then
echo "usage: $0 <zfs_object>" >&2
exit 1
fi
exec zfs snapshot "${1}@zb-`date '+%F %T %z' |tr '+ ' 'p_'`"