Page History
SQL Safe provides you with CLI commands to help you manually create a new policy.
To create
a policy policies use the following command:
- SQLsafeCmd Create-Policy <policy_type> <policy_name> [options]
Where:
Action | Description |
---|---|
<policy_type> | Type of the policy. Valid types: Restore, Backup, LogShipping. |
<policy_name> | Name of the policy. |
Advanced Options
The following advanced options help you perform RestoreHeaderOnly operationscreate policies:
Options | Description |
---|---|
-ArgsFile <filename> | The path to a file containing command-line arguments. <filename> - specifies the file that contains the command line arguments. |
For detailed descriptions and available options, see the CLI Help (SQLsafecmd help create-policy
).