12 lines
222 B
Bash
Executable file
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_'`"
|