Hi there,
Unfortunatly there is no documentation about the "sdcli dataset" commands
I am not a netapp guru but here is my method to make this work. Test before implementing.
If you have any suggestion or feedback, i'd be glad to hear it
1. First step is to create an applicative dataset using sdcli dataset so it looks something good like snapmanager:
sdcli dataset create -dn SnapDrv_SERVERNAME -as SERVERNAME -an "SnapDrive for Windows" -av "v6.3" -dd "description"
2. Add members, it means tell snapdrive to add the lun associated to this mount point into the dataset. Here my LUN are connected as E and F
sdcli add_members -dn SnapDrv_SERVERNAME -AP E:\ mp F:\ mp
3. Go to operation manager and give a protection policy to your dataset
4. Now operation manager and snapdrive can talk together and you have to schedule a backup script on your server
Here is my powershell script using snapdrive sdcli dataset command
This script allows consistent LUN snapshot using snapdrive and writes backup versions to Operation Manager
Then dataset retention and protection policy applies
It only works for filesystem consitency, DO NOT use this if you have some kind of databases or applications working on it
*******************************************************************
$hostname = hostname
$outputfile = "c:\temp\output.txt"
$datasetname = "SnapDrv_XXX"
$jobname = ""
$jobdescription = "Daily Backup"
$jobretention = "daily"
$date = get-date -uformat %Y-%M-%d_%H%M%Z
$snapshotname = $date + "00_SnapDrv_XXX_" + $jobretention
$AP1 = "F:\"
$AP2 = "M:\"
sdcli dataset backup_start -dn $datasetname -desd $jobdescription -rt $jobretention > $outputfile
Get-Content $outputfile | select-string -pattern ":" | foreach {$_.line -match "\d+"}
$backupversion = $matches[0]
sdcli dataset create_local_backup -dn $datasetname -bv $backupversion -SL $snapshotname $AP1
sdcli dataset create_local_backup -dn $datasetname -bv $backupversion -SL $snapshotname $AP2
sdcli dataset transfer_now -dn $datasetname -rt $jobretention
sdcli dataset backup_end -dn $datasetname -bv $backupversion