Back up and restore environments

Protecting your data in customer engagement apps (Dynamics 365 Sales, Dynamics 365 Customer Service, Dynamics 365 Field Service, Dynamics 365 Marketing, and Dynamics 365 Project Service Automation), and providing continuous availability of service are important. You have multiple options for backing up and restoring your environments. For information about app specific backup and restore, see the respective app's documentation:

System backups

Some backups take place without you having to do anything.

System backups.

About system backups:

  • System backups are not counted toward capacity.
  • Copy and restore operations can take up to 8 hours unless a lot of data, including audit data, needs to be copied or restored, in which case they could take up to 24 hours.
  • All your environments, except Trial environments (standard and subscription-based), are backed up.
  • System backups occur continuously. The underlying technology used is Azure SQL Database. See SQL Database documentation Automated backups for details.
  • System backups for production environments that have been created with a database and have one or more Dynamics 365 applications installed are retained up to 28 days. System backups for production environments that don't have Dynamics 365 applications deployed in them will be retained for 7 days. System backups for sandbox environments will be retained for 7 days.
  • You must restore an environment to the same region in which it was backed up.
  • 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 will be available, including any audit logs that were generated after t1.
  • The target environment will be listed in the Select environment to overwrite drop-down. If you don't see an environment, note that the target environment must be in the same geo (geographical region) as the source environment.
  • Only Power Apps and Power Automate flows in a Dataverse solution participate in backup and restore operations.

Restore a system backup

  1. Browse to the Microsoft Power Platform admin center and sign in using administrator credentials. Consider using the less privileged service admin role instead of the global admin role. See Use the service admin role to manage your tenant.

  2. Go to Environments > [select an environment] > Backups > Restore or manage.

    Select Restore or manage.

  3. Select the System tab.

  4. Under Select a backup to restore, choose a date and time to select a system backup to restore, and then select Continue.

    Select available backup.

  5. Select an environment to restore to (overwrite), enter other settings as desired, and then select Restore.

    Enter backup details.

    Note

    • Only sandbox environments can be restored to.
    • Under Edit details, you can change the environment name.
  6. Confirm overwrite of the environment.

Manual backups

Automated system backups are great, but you'll want to make your own backups before making some significant customization change or applying a version update. You can do this with manual backups.

About manual backups:

  • A backup is created for you when we update your environment.

  • You can back up production and sandbox environments.

  • You can't back up the default environment.

  • Sandbox backups are retained for up to 7 days.

  • Manual backups for production environments that have been created with a database and have one or more Dynamics 365 applications installed are retained up to 28 days. Manual backups for production environments that don't have Dynamics 365 applications deployed in them will be retained for 7 days.

  • Check your expiration date.

    Backup expiration date.

  • The label of the created backup 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.

  • You aren't limited in the number of manual backups you can make.

  • Manual backups don't count against your storage limits.

  • You must restore an environment to the same region in which it was backed up.

Create a manual backup

  1. Browse to the Power Platform admin center and sign in using administrator credentials.

  2. Go to Environments > [select an environment] > Backups > Create.

    Select Create.

  3. Fill in the information, and then select Create.

There's no status as the backup is processing. When the backup is completed, you'll see the following message: "The [backup name] backup was successfully created."

Restore a manual backup

You can only restore to sandbox environments. To restore to a production environment, first switch it to a sandbox environment. See Switch an environment.

Important

Note that changing an environment type to sandbox will immediately reduce backup retention to 7 days. If you don't need backups (restore points) older than 7 days, then you can safely switch the type. If you think you may need restore points older than 7 days, we strongly recommend that you keep the environment as production and consider restoring to a different environment of type sandbox.

  1. Browse to the Power Platform admin center and sign in using administrator credentials.

  2. Go to Environments > [select an environment] > Backups > Restore or manage.

  3. Select the Manual tab.

  4. Select a manual backup to restore, and then select Restore.

  5. Select whether to include audit logs. Including audit logs can significantly add to the time it takes to restore an environment and by default isn't done. See the Restoring audit logs section.

    Include audit logs when restoring a backup.

  6. Select an environment to restore to (overwrite), and then select Restore.

    Note

    Only sandbox environments can be restored to.

  7. Confirm overwrite of the environment.

Restoring audit logs

Restoring audit logs can significantly add to the time it takes to restore an environment and by default isn't done. Do the following steps to include audit logs when restoring a manual backup.

  1. Complete steps 1-5 above.

  2. Under Audit logs, select Click here.

    Select click here to include audit logs.

  3. Enable copying audit logs.

    Enable copying audit logs.

  4. Continue with steps 6 and 7 above.

Delete a manual backup

You can delete manual backups. You can't delete system backups.

  1. Browse to the Power Platform admin center and sign in using administrator credentials.

  2. Go to Environments > [select an environment] > Backups > Restore or manage.

  3. Select the Manual tab.

  4. Select Delete.

  5. Confirm deletion of the environment.

FAQ

How are system backups taken?

In the current version of the product, system backups occur continuously; this is different from previous versions where backups were once a day. Because the underlying technology used is Azure SQL Database, see Automated backups for details.

How are manual/on-demand backups taken?

In the current version of the product, system backups occur continuously; this is different from previous versions where backups were once a day. Because the underlying technology used is Azure SQL Database, see Automated backups for details.

Because Azure SQL Database takes backups continuously, there's no need to take additional backups or specify Azure SQL Database to take additional backups or an on-demand full backup. That means your on-demand backup is just a timestamp and a label that reflects the timestamp that we store in our system and use during restore requests. This is different from previous versions that took a full backup during an on-demand backup.

Why can't I see a status of the manual backup?

There's no status as the backup is processing. When the backup is completed, you'll see the following message: "The [backup name] backup was successfully created."

Should I open a support ticket for taking a full backup?

No. In the current version of the product, system backups occur continuously; this is different from previous versions where backups were once a day. Because the underlying technology used is Azure SQL Database, see Automated backups for details.

Because Azure SQL Database takes backups continuously and there's no specific way to take additional on-demand backups, we recommend that you use the Power Platform admin center on-demand backup capabilities for labeled backups.

How long are my manual/on-demand backups and system backups retained?

System and manual backups for certain production-type environments are retained up to 28 days. Other environment type backups are retained up to 7 days only. Please see the following FAQ, How do I determine if backups of a production environment are retained for 28 days?

How do I determine if backups of a production environment are retained for 28 days?

Production environments that have been created with a database will give you the option to enable one or more Dynamics 365 applications if you have purchased licenses that entitle you to deploy such applications (for example, Dynamics 365 Sales, Dynamics 365 Customer Service). Backups of production environments with a database and Dynamics 365 applications deployed are retained for up to 28 days. In contrast, backups of production environments that don't have Dynamics 365 applications deployed in them will be retained for 7 days.

Can I extend my backup to be retained beyond the standard number of days?

You can't extend your system backups or manual/on-demand backups. However, if you want to keep the data for longer than the standard retention period, we recommend you copy your environment to an additional environment and don't modify that additional environment.

Can I move my data from an online environment to an on-premises version?

Obtaining a copy of your database backup isn't available. If you want to move your online data to Dynamics 365 Customer Engagement (on-premises), this requires data migration. For smaller data sets, consider exporting data to Excel. For larger data sets, find a third-party data migration solution on Microsoft AppSource.

How can I download a copy of my backup?

Obtaining a copy of your database backup isn't available. Moving your online data requires data migration. For smaller data sets, consider exporting data to Excel. For larger data sets, find a third-party data migration solution on Microsoft AppSource.

Do we have any database size restriction to take a backup or restore an organization through user interface (UI) or API?

We don't have any restriction on database size (or storage capacity/entitlement) to take a backup through UI or API. However, when an organization’s storage capacity usage is greater than the entitled capacity, the following admin operations will be blocked:

  • Restore an environment (requires minimum 1 GB capacity available)
  • Create new environment (requires minimum 1 GB capacity available)
  • Copy an environment (requires minimum 1 GB capacity available)

To be compliant with storage usage requirements, customers can always free up storage, archive data, delete unwanted environments, or buy more capacity. To learn more about capacity add-ons, see the Add-ons section in the Dynamics 365 Licensing Guide or the Power Apps and Power Automate Licensing Guide. You can work through your organization’s standard procurement process to purchase capacity add-ons.

Can I restore to a production environment?

In order to prevent accidental overwrites, we don't allow users to directly restore to a production environment. To restore to a production environment, first switch it to a sandbox environment. See Switch an environment. Note that changing an environment type to sandbox will immediately reduce backup retention to 7 days. If you don't need backups (restore points) older than 7 days, then you can safely switch the type. If you think you may need restore points older than 7 days, we strongly recommend that you keep the environment as production and consider restoring to a different environment of type sandbox.

Why is my organization in administration mode after a restore and how do I disable it?

The newly restored environment is placed in administration mode. To disable administration mode, see Set administration mode. You can set administration mode in sandbox or production environments.

What steps are needed after a restore to ensure flows are working as expected?

  • Flows - In the target environment, existing solution flows will be deleted but existing non-solution flows will remain. Review the flows in the target environment to ensure that triggers and actions are pointing at the correct locations. Solution flows will be disabled so enable flows as needed. Solution flows need to be enabled or turned on for the PowerShell and API commands to work with these flows.
  • Connection References - Connection References will require new connections. Create and set connections on Connection References.
  • Custom Connectors - Custom connectors should be reviewed and, if needed, deleted and reinstalled.

Are apps shared with Everyone still shared with Everyone in a restored environment?

No. Apps shared with Everyone in an environment that's backed up aren't shared with Everyone in the restored environment. Alternatively, a canvas app can be shared with a security group and the app in the restored environment will be shared with that security group.

Are app identifiers the same after backup and restore operations?

No for canvas apps. The app ID for a canvas app is different in a restored environment than the ID value when an environment was backed up.

Troubleshooting

Don't see your environment to restore to?

Only sandbox environments can be restored to.

See also

Automatic environment cleanup
Manage sandbox environments
Environments overview
Licensing overview for Microsoft Power Platform