Snapshots ordering on slave and pfs according to freequency for snapshot management
Francois Tigeot
ftigeot at wolfpond.org
Tue Apr 27 00:48:58 PDT 2010
On Mon, Apr 26, 2010 at 06:56:50PM -0700, Matthew Dillon wrote:
>
> :All I need is to figure out how to remove the 5mins snapshots that
> :gets mirrored on the slave older than two days with out removing the
> :daily snapshots.
> :
> :But I am a bit confused now since I dont see snapshots actually
> :removed after a hammer cleanup.
> :I will send the details with a new subject
> :
> :--Siju
>
> hammer cleanup only removes snapshots over X days old. It can't
> distinguish between fine-grained and coarse-grained snapshots
> that you explicitly tell hammer to make. You would have to remove
> those yourself (if you want to expire them before the X days)
> using hammer snaprm.
>
> You can script it fairly easily by setting the comment field for
> each snapshot you take, then filtering out the list based on that.
> See the manual page.
I think sysutils/rsnapshot does what you want. It uses hard links to simulate
snapshots on classic filesystems and manages different ranges of snapshots.
You can specify how much snapshots you want to keep for each range:
[rsnapshot.conf]
interval hourly 6
interval daily 7
interval weekly 4
interval monthly 12
The hammer utility would be much better if it implemented some similar
mechanism IMHO.
--
Francois Tigeot
More information about the Users
mailing list