mike wrote:
Bear in mind I am not that comfortable with smf and manifests and
Solaris userland and such... I wouldn't want to be messing up anything
or not setting it up correctly.

For the benefit of others who may be lurking, the policies are:
   svc                    interval    keep
---------------------------------------------
auto-snapshot:frequent     15 mins        4
auto-snapshot:hourly        1 hours      24
auto-snapshot:daily         1 days       31
auto-snapshot:weekly        7 days        4
auto-snapshot:monthly       1 months     12

My little PHP script (yes, I use PHP for shell scripting) does a
perfect job of what I need and I got a neat idea from Brad Stone about
rolling up daily snapshots into monthly snapshots, which would roll up
into yearly snapshots...

For scripting wizards, the same table is available from:

$ for i in frequent hourly daily weekly monthly; do
echo $i $(svcprop -p zfs/period auto-snapshot:$i) $(svcprop -p zfs/interval auto-snapshot:$i) keep $(svcprop -p zfs/keep auto-snapshot:$i)
 done
frequent 15 minutes keep 4
hourly 1 hours keep 24
daily 1 days keep 31
weekly 7 days keep 4
monthly 1 months keep 12

-- richard


On Mon, Mar 9, 2009 at 1:29 PM, Richard Elling <richard.ell...@gmail.com> wrote:
mike wrote:
Well, I could just use the same script to create my daily snapshot to
remove a snapshot with the same prefix, just different date (say, keep
30 days only or something)

NB the autosnapshot feature (aka Time Slider Manager) already
has this capability.

My hope was to just keep a running archive indefinitely. But I guess
snapshots are only as good as needed, and I doubt I will realize I
need a file I lost 6+ months ago...

famous last words... :-)
-- richard



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

Reply via email to