ONTAP Discussions

Can you set a time for the Nightly and Weekly snapshots to occur or ?

johnwagner
9,519 Views

I'd like to know if its possible to set a time for the Nightly and Weekly vol snapshots to occur.?

I know you can set times for the hourly but is that the only one you can adjust?

If you can set them to a time other than midnight, how would you do this?

thanks,

John

1 ACCEPTED SOLUTION

__frostbyte_9045
9,517 Views

No by using the system's internal scheduling.  We use a Windows server to send RSH commands for VM snapshot schedule.  The script is called by task scheduler and you can call the snapshot what every you like to call them.  As such, I assume that you could use this same process to call the 'nightly.bat' script to run, say at 2am, and then use the default naming scheme.  Just make sure to turn of the NetApp scheduled snapshots.

View solution in original post

13 REPLIES 13

lovik_netapp
9,393 Views

As I remember it's not possible and by default it takes snapshot at 00 hrs. however would love to hear if this is possible and I am not aware of as I am also looking for this feature.

johnwagner
9,393 Views

Thats kind of what I thought but I was hoping maybe there was someway to configure or script a workaround..

Its kinda weird that you can setup the hourly to occur at specific times but that's it.?

adamfox
9,393 Views

Hourly is still at the top of the hour, it just lets you set it at the top of particular hours.

If you really need to do this, you'd have to externally script it which would include rotating the hourlys.

johnwagner
9,393 Views

not sure i understand you completely..

__frostbyte_9045
9,518 Views

No by using the system's internal scheduling.  We use a Windows server to send RSH commands for VM snapshot schedule.  The script is called by task scheduler and you can call the snapshot what every you like to call them.  As such, I assume that you could use this same process to call the 'nightly.bat' script to run, say at 2am, and then use the default naming scheme.  Just make sure to turn of the NetApp scheduled snapshots.

johnwagner
9,393 Views

ahhh.. so i could have my ops manager server say for example,

run this script each night..hmmm very cool...  I'll have to dig into this some more and figure out the wording of the script,

Thanks!!

johnwagner
9,393 Views

are there any good references for the command set or maybe someone has created a script already that I can start with and modify as required?

I hate to reinvent the wheel.... 

__frostbyte_9045
8,059 Views

We are using RSH and the sever calling the scripts is in the host.equiv file.  With this working, all commands are identical to those typed in the console.

snap delete -V <vol-name> nightly.7

snap rename -V <vol-name> nightly.6 nightly.7

snap rename -V <vol-name> nightly.5 nightly.6

snap rename -V <vol-name> nightly.4 nightly.5

snap rename -V <vol-name> nightly.3 nightly.4

snap rename -V <vol-name> nightly.2 nightly.3

snap rename -V <vol-name> nightly.1 nightly.2

snap create -V <vol-name> nightly.1

You can do the something similar with the weekly.# rotation.  You can also use ssh.

Information for RSH can be found in setting up a silimar script, but more complicated, in the VMware notes for NetApp.  If you can't find them, let me know and I'll look around.

sisi2001rete
7,893 Views

...or you can use hourly snapshots instead of daily and weekly to match your needs.

 

JGPSHNTAP
7,888 Views

You can do this with powershell to the filer, or like others have mentioned, protection manager ,local backups only seems like a good fit for you

jmerrill
9,393 Views

In addition, if you have a Protection Manager license in addition to Operations Manager, this can be done with the "Local Backups only" policy.

johnwagner
9,393 Views

hmmm... unfortuately we dont have that module... i have ops manager and

Business Continuance Option..

I'm still waiting on our sales person to get back to me with demo licenses for the other features as well as pricing for those..

parisi
8,059 Views

There is also a way to schedule snapshots at a certain minute on the hour using priv set advanced commands with snap sched.

But as for the nightly and weekly, they're at the same times always.

Public