![]() "type": "Microsoft.Sql/resourceGroups/servers/databases/backupShortTermRetentionPolicies",įor more information, see Backup retention REST API. "id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/resourceGroups/resourceGroup/servers/testserver/databases/testDatabase/backupShortTermRetentionPolicies/default", Set-AzSqlDatabaseBackupShortTermRetentionPolicy -ResourceGroupName resourceGroup -ServerName testserver -DatabaseName testDatabase -RetentionDays 28 -DiffBackupIntervalInHours 24 # Set a new PITR differential backup frequency on an active individual database Set-AzSqlDatabaseBackupShortTermRetentionPolicy -ResourceGroupName resourceGroup -ServerName testserver -DatabaseName testDatabase -RetentionDays 28 To change the PITR backup retention and differential backup frequency for active databases, use the following PowerShell example: # Set a new PITR backup retention period on an active individual database # Valid differential backup frequency must be ether 12 or 24 hours # Valid backup retention must be 1 to 35 days To upgrade to the latest version, run az upgrade.Ĭhange the PITR backup retention and differential backup frequency for active databases by using the following example: # Set new PITR differential backup frequency on an active individual database Run az version to find the version and dependent libraries that are installed. For more information about extensions, see Use extensions with the Azure CLI. How to change startallback settings install#When you're prompted, install Azure CLI extensions on first use. For additional sign-in options, see Sign in with the Azure CLI. To finish the authentication process, follow the steps displayed in your terminal. If you're using a local installation, sign in to the Azure CLI by using the az login command. How to change startallback settings how to#For more information, see How to run the Azure CLI in a Docker container. If you are running on Windows or macOS, consider running Azure CLI in a Docker container. If you prefer to run CLI reference commands locally, install the Azure CLI. For more information, see Azure Cloud Shell Quickstart - Bash. Use the Bash environment in Azure Cloud Shell. Prepare your environment for the Azure CLI: Select Configure policies from the action bar.Select the databases for which you want to change the PITR backup retention.Select Backups on the left pane, and then select the Retention policies tab.Go to the logical server in Azure with the databases whose retention period you want to change.To change the PITR backup retention period or the differential backup frequency for active databases by using the Azure portal: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |