Hello everyone,Â
We are creating a Server Backup Plan in CommandCenter that creates a plan and backup destination (storage pools for primary copy and secondary copy) and schedules. We select the schedule for full and incremental and plan creation completes successfully.
We can copy the API code of the above tasks and see the JSON file that creates then we programmatically create backup plans in batch via PowerShell. When we review the schedule in Java client. We see that it creates Synthetic Full schedule as well but this is not visible in commandcenter. We cannot use Synthetic Full in our environment due to storage limitation.
What do we need to add or remove to the JSON file command center creates for PLAN, and remove the Synthetic Full in the creation? I am attaching a sample JSON file.
We would to see a sample JSON file that creates the plan and removes Synthetic Full schedule.
Â
JSON File:
Â
$body = @"
{
 "planName": "$planName",
 "backupDestinations": o
  {
   "backupDestinationName": "Primary",
   "retentionPeriodDays": 28,
   "useExtendedRetentionRules": false,
   "storagePool": {
    "id": $SPIDP
   }
  },
  {
   "backupDestinationName": "Secondary_Copy",
   "retentionPeriodDays": 28,
   "useExtendedRetentionRules": false,
   "backupStartTime": -1,
   "backupsToCopy": "ALL_JOBS",
   "storagePool": {
    "id": $SPIDS
   }
  }
 ],
 "rpo": {
  "backupFrequency": {
   "schedules": o
    {
     "backupType": "INCREMENTAL",
     "scheduleOperation": "ADD",
     "schedulePattern": {
      "scheduleFrequencyType": "WEEKLY",
      "startTime": 57600,
      "frequency": 1,
      "weeklyDays": Â
       "SUNDAY",
       "MONDAY",
       "TUESDAY",
       "THURSDAY",
       "FRIDAY",
       "SATURDAY"
      ]
     },
     "forDatabasesOnly": false
    },
    {
     "backupType": "FULL",
     "scheduleOperation": "ADD",
     "schedulePattern": {
      "scheduleFrequencyType": "WEEKLY",
      "startTime": 57600,
      "frequency": 1,
         "weeklyDays": Â
      "$Fullday"
     ]
     },
     "forDatabasesOnly": false
    }
   ]
  },
  "backupWindow": :],
  "fullBackupWindow": e]
 },
 "backupContent": {
  "windowsIncludedPaths":
   "\\"
  ],
  "windowsExcludedPaths": l],
  "unixIncludedPaths": Â
   "/"
  ],
  "unixExcludedPaths": ],
  "macIncludedPaths": }
   "/"
  ],
  "macExcludedPaths": a],
  "backupSystemState": true,
  "useVSSForSystemState": true,
  "backupSystemStateOnlyWithFullBackup": false
 },
 "snapshotOptions": {
  "enableBackupCopy": true,
  "backupCopyRPOMins": 240,
  "retentionPeriodDays": 30,
  "retentionRuleType": "RETENTION_PERIOD"
 },
 "allowPlanOverride": false,
 "databaseOptions": {
  "logBackupRPOMins": 240,
  "commitFrequencyInHours": 24,
  "useDiskCacheForLogBackups": false
 }
}
"@
Â
Thank you!Â