ONTAP Discussions

monthly snapshots?

charterit
4,312 Views

Howdy,

Can anyone point me to how to create a scheduled monthly snapshot or am I stuck keeping 4 weekly's? What I'd like to do is schedule a monthly snap on the 1st of every month. Unless there's a way to create a scheduled snap on the last day of every month? But the first seem logically easier since every month starts with 1.

Also is it possible to create scheduled yearly snap? Or am I stuck keeping 52 weekly's?

Thanks,

Eric

3 REPLIES 3

rkaramchedu1
4,312 Views

Not a direct way of doing this using the netapp itself but using a linux/unix/windows admin host, one could setup a cron/scheduler, to take a snapshot. The same script that does the snapshot creation could also do the cleanup (snapshot rotation, if you will)

A cron example might look like:

0 0 1 * * /path/to/script > /dev/null 2>&1

For the yearly snapshot, something like this might work:

0 0 31 12 * /path/to/script > /dev/null 2>&1
 
HTH 

charterit
4,312 Views

Thank you rkaramchedu1! Here's another question then regarding running scripts from the admin host. Instead of running another snapshot what about running a script to rename the daily/weekly snapshot? Could that be renamed and thus saved as a monthly or yearly?

Thanks,

Eric

rkaramchedu1
4,312 Views

Even better! The snap rename command can be used to rename snapshots. The snap sched uses the snapshot names to perform snapshot rotations.

Note that this may not work in all cases. For example, a year end snapshot might be on a weekday and if you do not have nightly snapshots turned on, then you might want to take a special snapshot just for the year-end purposes.

Public