---
name: "NetApp::Snapshot::Schedule"
section: "3pm"
platform: "linux"
package: "libnetapp-perl"
version: "500.002-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/NetApp::Snapshot::Schedule"
---

# NetApp::Snapshot::Schedule(3pm)

## NAME

NetApp::Snapshot::Schedule -- OO class which represents a snapshot schedule

## SYNOPSIS

```
    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 ],
    );
```

## DESCRIPTION

This class encapsulates a snapshot schedule for an aggregate of volume.

## INSTANCE METHODS

### get\_parent

This method returns the parent object for the schedule, which is either a NetApp::Aggregate or NetApp::Volume object.

### get\_weekly, get\_daily, get\_hourly

These methods return the number of weekly, daily, or hourly snapshots in the schedule.

### get\_hourlist

This method returns a list of integers, each of which is one of the hours at which to create an hourly snapshot.
