Page tree
SQL Safe provides you with CLI commands to help you manually create new policies.


To create policies use the following command:
  • SQLsafeCmd Create-Policy <policy_type> <policy_name> [options]


Where:
ActionDescription
<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 create policies:

Options
Description
-ArgsFile <filename>

The path to a file containing command-line arguments.

<filename> - specifies the file that contains the command line arguments.


The following topics are included in this section:

For detailed descriptions and available options, see the CLI Help (SQLsafeCmd help Create-Policy).