Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
The new and improved Power Platform admin center is now generally available. We're currently updating the documentation to reflect these changes, so check back to ensure that you're getting the latest updates.
It's important to protect your data on Microsoft Power Platform and in Dataverse and to provide continuous availability of service through system or manual backups.
System backups are automatically created for environments that have a database. System backups of production environments that have a database and Dynamics 365 applications are retained for up to 28 days. By default, backups of production environments without Dynamics 365 applications and other nonproduction environments are retained for seven days. However, for managed production environments without Dynamics 365 applications, the retention period can be extended up to 28 days using PowerShell.
Manual backups are backups that the user initiates. It's recommended for creating manual backups before performing major customizations, applying a version update, or making significant changes to the environment. You can create these backups for production and sandbox environments, but not for the default environment. Manual backups of production environments that have Dynamics 365 applications are kept for up to 28 days. Backups of environments that don't have Dynamics 365 applications are kept for seven days.
Supported retention period
Environment types | System backup | Manual backup |
---|---|---|
Production with Dynamics 365 apps | 28 days | 28 days |
Production without Dynamics 365 apps* | 7 days | 7 days |
Sandbox | 7 days | 7 days |
Developer | 7 days | 7 days |
Teams | 7 days | 7 days |
Default** | 7 days | Not supported |
Trial | Not backed up | Not supported |
Trial (subscription-based) | Not backed up | Not supported |
* For managed production environments that don't have Dynamics 365 applications, we allow you to extend the retention period beyond seven days, to a maximum of 28 days, through PowerShell. Learn more in Change the backup retention period for production environments without Dynamics 365 applications.
** We don't support restoring a system backup of the default environment through the Power Platform admin center. Learn more in Backup and restoration of the default environment.
System backup and restore operations aren't supported for trial-type environments. To use the full set of features, including system backup and restore options, go to Convert either type of trial environment to a production environment.
System backups
Environments that have a database are automatically backed up and can be restored. All your environments, except trial environments (both standard and subscription-based), have system backups. System backups are created continuously using the Azure SQL Database automated backup feature. Learn more in Automated backups.
- Sign in to the Power Platform admin center.
- In the navigation pane, select Manage, then in the Manage pane, select Environments.
- On the Environments page, select an environment.
- In the command bar, click Backup & Restore, then select Restore or manage.
- On the System tab, select an available system backup by choosing a date and time.
- Click Continue.
- The Backup retention side panel displays the backup details.
About system backups
- System backups aren't counted toward storage capacity. To restore an environment, you need 1 gigabyte (GB) of free capacity. If you're over capacity, learn more in: Is there a database size restriction for backing up or restoring an organization through the user interface or API?.
- Copying and restoring data might take more than one day, depending on the size of the data, especially if you must copy audit data.
- Backup and restore operations include only apps (created by using Power Apps) and flows (created by using Power Automate) in a Dataverse solution.
- Downloading a copy of a database backup for offline use isn't supported.
Change the backup retention period for production environments without Dynamics 365 applications
For environments without Dynamics 365 applications, the default backup retention period is seven days. Admins who run production Managed Environments of this type can use PowerShell to change the retention period to 7, 14, 21, or 28 days. To change this setting, you must have an admin role, such as Power Platform admin or Dynamics 365 admin in Microsoft Entra ID.
Keep the these points in mind:
- If you adjust the backup retention period, the new setting applies to all future backups and existing backups within the retention period. The change may take up to 24 hours to apply, and some older backups may be removed earlier than expected. Because the change might take up to 24 hours to affect existing backups, some backups might be removed earlier than you expect.
- For all other nonproduction environments, including default-type environments, the backup retention period is seven days by default. For example, you create an environment on January 1. On that day, the system starts to make backups of your environment, and it stores those backups for a default period of seven days. Therefore, on January 8, backups from January 1 to January 8 are available for restoration. If you change the retention period to 14 days on January 8, the system starts to keep the backups for a longer time. Therefore, on January 16, backups from January 3 to January 16 are available for restoration. In this way, you have more flexibility and control over your backup data.
Prepare your environment for PowerShell
The PowerShell module for Power Platform Administrators is the recommended tool for managing administrative capabilities in Power Platform environments. For information that helps you get started with the PowerShell for Power Platform Administrators module, go to Get started with PowerShell for Power Platform Administrators.
Note
You can extend the backup retention period only for production environments where Dynamics 365 applications aren't enabled. For production environments where Dynamics 365 applications are enabled, a retention period of 28 days is used. For all other nonproduction environments, the default backup retention period of seven days is used, regardless of the setting's value.
Set the retention period
Set-AdminPowerAppEnvironmentBackupRetentionPeriod
Supply values for the following parameters:
- Set the EnvironmentName parameter to the environment ID of your environment.
- Set the NewBackupRetentionPeriodInDays parameter to 7, 14, 21, or 28.
Verify the retention period
Get-AdminPowerAppEnvironment -EnvironmentName "Environment ID"
Set the EnvironmentName parameter to the environment ID of your environment.
Restore system backups
You can't directly restore backups to production environments. To restore a backup to a production environment, you must first change the environment type to sandbox, perform the restore, and then switch the environment type back to production. If you want to restore a system backup to a production environment, you must first change the environment type to sandbox. Then, after the restore is completed, you can then switch the environment type back to production. Learn more in: Can I restore to a production environment?.
You must restore an environment in the same region where it was backed up. The target and source environments should be in the same region. When an environment is restored onto itself, audit logs aren't deleted. For example, when an environment is restored onto itself to a past time (t1), full audit data for the environment is available. This data includes any audit logs that were generated after t1.
- Sign in to the Power Platform admin center.
- In the navigation pane, select Manage, then in the Manage pane, select Environments.
- On the Environments page, select an environment.
- In the command bar, click Backup & Restore, then select Restore or manage.
- Under the System tab, select an available system backup by choosing a date and time.
- Select Continue.
- On the Backup retention side panel, select the target environment to overwrite.
- Select Restore, then select Confirm to proceed with overwriting the environment.
Note
- Only sandbox environments can be restored to. For information about the effects of changing the environment type, go to the section: Can I restore to a production environment?.
- Under Edit details, you can change the environment name.
If you don't see the environment that you want to restore to
These restrictions apply to restoration from both system backups and manual backups:
- You must restore an environment in the same region where it was backed up. The target and source environments should be in the same region.
- The source environment can be a production, sandbox, or developer environment. No other types of environments are supported.
- The target environment can be a sandbox or developer environment. If the target is a developer environment, the source must also be a developer environment.
- A Managed Environment can be restored only to another Managed Environment. A non-Managed Environment can't be restored to a Managed Environment.
- If the source environment has a customer-managed encryption key applied, the target environment must also have the same customer-managed encryption key applied.
- Backup and restore operations work only with source and target environments that have Dataverse.
- If there are any enterprise policies applied to the source environment, then the target environment should also have the same set of policies applied.
- Sandbox, Teams, and developer environments support self-restore backups.
Source type | Target type |
---|---|
Production | Sandbox |
Sandbox | Sandbox |
Developer | Sandbox, Developer |
Teams | Teams (self-restore only) |
Default | Developer |
For more information about how to restore to a production environment, go to the section: Can I restore to a production environment?.
Manual backups
Although automated system backups are great, you should create your own backups before you do major customization or apply a version update. Manual backups might take up to 10 minutes to process before they're available for restoration. It's recommended to wait at least 10–15 minutes before attempting to restore from a manual backup. Therefore, wait at least 10 to 15 minutes before you try to restore your data from a manual backup.
About manual backups
You can create backups of production, sandbox, Teams, and developer environments.
You can't create backups of the default environment.
Manual backups of production environments that have a database and Dynamics 365 applications are kept for up to 28 days. Manual backups for production environments that don't have Dynamics 365 applications are kept for seven days.
Sandbox backups are kept for up to seven days.
Check your expiration date.
The label of the backup file that is created reflects the restore point timestamp. The restore point timestamp is the closest available time to the time when the manual backup was created. The timestamp label can't be edited.
There's no limit on the number of manual backups that you can create.
Manual backups don't count against your storage capacity limits, but restoring an environment requires at least 1 GB of available capacity.
You must restore an environment in the same region where it was backed up.
If you don't see your target environment, refer to the If you don't see the environment that you want to restore to section for possible reasons and troubleshooting steps.
Create a manual backup
- Sign in to the Power Platform admin center.
- In the navigation pane, select Manage, then in the Manage pane, select Environments.
- On the Environments page, select an environment.
- In the command bar, click Backup & Restore, then select Restore or manage.
- Select the Manual tab, then click Create a manual backup.
- Fill in the information, then select Create to proceed.
There's no real-time status indicator while the backup is being processed. However, you receive a confirmation message once the backup is successfully created. When the backup is completed, you receive the following message: "The <backup name> backup was successfully created."
Restore a manual backup
You can restore backups only to sandbox environments. You can't restore them to production environments. If you want to restore a manual backup to a production environment, you must first change the environment type to sandbox. Then, after the restore is completed, you can switch the environment type back to production.
Important
Changing the environment type to sandbox affects database retention. For more information about the effects of changing the environment type, go to the section: Can I restore to a production environment?.
- Sign in to the Power Platform admin center.
- In the navigation pane, select Manage, then in the Manage pane, select Environments.
- On the Environments page, select an environment.
- In the command bar, select Backup & Restore, then select Restore or manage.
- On the Manual tab, select a manual backup to restore, then select Restore in the command bar.
- On the Backup retention side panel, select the target environment to overwrite.
- Select whether you want to include audit logs. The inclusion of audit logs can significantly increase the time that's required to restore an environment. Therefore, audit logs are excluded by default. Learn more in Restore audit logs.
- Select Restore, then select Confirm to proceed with overwriting the environment.