Created
January 14, 2013 20:40
-
-
Save espennilsen/4533201 to your computer and use it in GitHub Desktop.
Takes all your snapmirror relationships and sets them up to run once an hour at a random minute.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Foreach ($sm in Get-NaSnapMirror) { | |
| Set-NaSnapmirrorschedule -Destination $sm.destination -Source $sm.source ` | |
| -Minutes (Get-Random -minimum 0 -maximum 59) -hours * -daysofmonth * -daysofweek * | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Used in my blog post http://espennilsen.net/?p=25