NetApp...hedule(3pm)

πŸ“¦
version 500.002 Β· 2 versions
  • 500.002 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 500.002 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NetApp::Snapshot::Schedule ✨

okay bestie, so this is NetApp::Snapshot::Schedule β€” it's a lil OO class (Perl, the 3pm section of the manual, "User Contributed Perl Documentation" era, iykyk) and what it does is literally just represent a snapshot schedule. that's the whole vibe. a snapshot schedule, but make it an object. πŸ’…


🌸 SYNOPSIS 🌸

here's how you actually use it, no cap:

use NetApp::Filer;
use NetApp::Aggregate;
use NetApp::Volume;
use NetApp::Snapshot;

my $filer = NetApp::Filer->new({ .... });

my $volume = $filer->get_volume( $volname );

my $schedule = $volume->get_snapshot_schedule;

$volume->set_snapshot_schedule(
    weekly          => 0,
    daily           => 2,
    hourly          => 4,
    hourlist        => [ 4, 8, 12, 16 ],
);

so you grab a filer, pull a volume off it, snag the snapshot schedule with get_snapshot_schedule, and then you can set one with set_snapshot_schedule β€” passing in weekly, daily, hourly, and an hourlist arrayref. that's it. that's the whole flow. iconic. πŸ¦‹


πŸ’– DESCRIPTION πŸ’–

okay so real talk: this class encapsulates a snapshot schedule for an aggregate of volume. that's literally the description, bestie β€” it wraps up the schedule-ness so you don't have to deal with it raw. it's giving "object-oriented wrapper, but make it about snapshots." πŸŽ€


πŸ‘‘ INSTANCE METHODS πŸ‘‘

these are the methods you call on an instance. main character methods, honestly.

get_parent

this one returns the parent object for the schedule. and who's the parent, you ask? it's either a NetApp::Aggregate or a NetApp::Volume object. those are the only two options, periodt. πŸ’œ

get_weekly, get_daily, get_hourly

three methods, one job: they return the number of weekly, daily, or hourly snapshots in the schedule. respectively. like, get_weekly gives you the weekly count, get_daily the daily count, get_hourly the hourly count. slay. πŸ”₯

get_hourlist

this one returns a list of integers β€” and each integer is one of the hours at which to create an hourly snapshot. so it's the "when do we do the hourly thing" list. literally a list of hours. 24-hour clock energy, bestie. ⭐


fr fr, that's the entire page β€” no hidden options, no sneaky environment variables, nothing. just vibes, a parent getter, three count getters, and a list of hours. πŸ˜­πŸ’–

sign-off time 🫢 β€” this lil doc came from perl v5.36.0, dated 2022-11-19, and yes the title line was NetApp...hedule(3pm) because somebody's terminal was NOT wide enough for the whole name. we've all been there. bye bestie!! πŸŒˆβœ¨πŸ’…

πŸ“¦ where this page comes from