Creating a Snapshot Policy
Create a snapshot policy for automatic snapshot creation and deletion. A snapshot policy contains up to 10 schedules for automatic snapshots. A snapshot policy won't create snapshots without schedules.
If you don't create a schedule when you create a policy and you want to add one or more schedules to an existing policy, see Adding a Schedule to a Snapshot Policy.
- Use the - oci fs filesystem-snapshot-policy createcommand and required parameters to create a snapshot policy:- oci fs filesystem-snapshot-policy create --availability-domain <availability_domain> --compartment-id <compartment_id> [OPTIONS]- To create schedules at the time you create the policy, include the optional - schedulesparameter. For example:- oci fs filesystem-snapshot-policy create --availability-domain <availability_domain> --compartment-id <compartment_id> --schedules '[{"timeZone":"UTC", "period":"DAILY", "hourOfDay":18}, {"timeZone":"UTC", "period":"WEEKLY", "hourOfDay":12, "dayOfWeek":"TUESDAY"}]'- For a complete list of flags and variable options for CLI commands, see the CLI Command Reference. 
- Use CreateFilesystemSnapshotPolicy to create a snapshot policy. - For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.