[OpenIndiana-discuss] Script to clean mess after zfs-auto-snapshot

Roman Naumenko roman at naumenko.ca
Tue Feb 12 02:00:41 UTC 2013


Jan Owoc said the following, on 11-02-13 8:35 PM:
> On Mon, Feb 11, 2013 at 5:39 PM, Roman Naumenko <roman at naumenko.ca> wrote:
>> After another big clenup on home filer during which I got terrible headache
>> because of zfs-auto-snapshost, I decided to ask if anybody tried to
>> simplified snapshot management.
> I think everyone has slightly different needs, so some combination of
> zfs commands are necessary. Any tool/wrapper you'd write is likely to
> be as overwhelming as zfs itself.
That's exactly the problem: too overwhelming, also hard to remember 
commands if not working with it often.
>> If a user could list all fs with zfs-auto weekly snapshots enabled, or count
>> them up or be able to enable other periodical snapshot fs, that would make a
>> lot of sense I think.
> $ zfs get com.sun:auto-snapshot
>
> will list all the filesystems along with their "auto-snapshot status".
> If you were tinkering with turning specific times on/off, you'd need
> to run:
> $ zfs get com.sun:auto-snapshot:weekly

Should the snapshots itself have property assigned? I see they got 
property inherited from dataset itself (maybe I did something wrong).

--Roman



More information about the OpenIndiana-discuss mailing list