oops forgot to attach the file
On 7/2/06, James Dickens <jamesd.wi at gmail.com>
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/admin_tools at DAY02-TIME-07: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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snaphere
Type: application/octet-stream
Size: 2109 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20060702/ce98ee50/attachment.obj>