oops forgot to attach the file

On 7/2/06, James Dickens <[EMAIL PROTECTED]> wrote:
Hi

i was boning up on my shell scripting skills, and wrote this little
utility to make taking snapshots easier in ZFS.

# ./snaphere -h
usage: snaphere [snapshot name]

create a snapshot of the zfs filesystem your currently working in.
snapshot name is optional, you don't have to be at the head of the
filesystem, we find  it if for you, and if  snapshot name is not
given, we use +DAY%d-TIME-%R as the snapshot name, see strftime(3C)
man page for more information.
# ./snaphere
NAME                   USED  AVAIL  REFER  MOUNTPOINT
pool2/home/[EMAIL PROTECTED]:29      0      -  66.5K  -

as you can see its pretty simple to use, just cd into any directory
that is part of a ZFS filesystem run the command and it will
automaticly take a snapshot of the filesystem you are in.

find the script attached. Comments are welcome, i did do a few things
the lazy way so feel free to fix them, and email me the changes.

Enjoy

James Dickens
uadmin.blogspot.com

Attachment: snaphere
Description: Binary data

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to