Introduction
This guide describes the easy steps to realize a continuous snapshotting for SNAS by the use of the API.
Be aware that Snapshots will need disk space depending on the interval and the data change rate.
-
-
-
Switch to the Folder scripts -> windows
-
Download the following files by opening them, choosing "Raw" and saving the file:
-
FAST.ps1
-
SB-ContinousSnapshot.ps1
-
Store the files to a folder on your Windows host ( we use C:\scripts )
-
The Windows host must have access to the management port of your Silent Brick System
-
-
-
Open a powershell and switch to scripts folder
-
Run the script with the desired parameters
-
Hostname: IP/Name of the Silent Brick System
-
Username: UI User with admin rights for the Volume
-
Password: UI Users' password
-
Volume: Name of your Volume
-
Minutes: Maximum Age of Snapshots before deletion
-
Verify snapshot creation in the volume view of your Silent Brick System
-
-
-
Open Windows Task Scheduler
-
Select "Create Task"
-
Define a Trigger as desired
-
Here it will create a Snapshot every 10 Minutes
-
Make sure your plan is enabled
-
-
-
Switch to Action and add a new action
-
Command: Powershell.exe
-
Arguments: Full commandline of the Snapshot-script including the arguments
-
Start in: Your scriptsfolder
-
-
-
Adjust the task settings as displayed
-
-
-
Right click the task and choose "run now"
-
Verify that a Snapshot is created
-
Your task is ready. Wait for the first Snapshots and make sure it runs as expected.
-