On Wed, May 10, 2006 at 02:22:27PM -0500, James Dickens wrote: > This was posted earlier but i guess it got lost in the shuffle i still > think its a good idea. Even thought you can put 10x32 snapshots, > doesn't mean we should have to. > > snapshot subdirectories enhancement that could make dealing with > snapshots better, perhaps we can create a directory structure under > .zfs/snapshot so the user can organise the snapshots for instance. > > cd .zfs/snapshot > mkdir daily > mkdir monthly > mkdir important > > then the user could use unix commands like mv to put snapshots where > he needs them it would also make snapshot management easier if i want > to delete all daily snapshots older than a week. > > find .zfs/snapshot/daily -ctime +7d > > and to create snapshots and place in the special directories > > zfs snapshot data/[EMAIL PROTECTED]/05-05-2006 > > all snapshot directories would start under .zfs/snapshot
You can do all of this except the "subdirectory snapshots" today. You can use a different delimiter (eg. '-') to accomplish much the same thing. We'll consider adding the subdirectory snapshots, which could potentially make managing a large number of snapshot easier. For example, today you can do: # zfs snapshot data/[EMAIL PROTECTED] # find .zfs/snapshot -name "daily-*" -ctime +7d # rmdir `find .zfs/snapshot -name "daily-*" -ctime +7d` # mv .zfs/snapshot/today .zfs/snapshot/daily-2006-05-10 The 'rmdir' effectively does a 'zfs destroy', and the 'mv' effectively does a 'zfs rename'. --matt _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss