Backup and Restore of Dynamics 365 Instances
This article is the last one about Dynamics instances. In this article, we will show you how to backup and restore an instance.
Backing up an instance
In Dynamics 365, backups are automatically taken on a per-instance basis.
The frequency of acquisition is once a day, and the backup retention period is 3 days (maximum). Expired backups will be deleted automatically.
Obtain backups manually (on-demand backups)
If you want to make a backup manually, click “New Backup” to make a backup.
As with the automatic backup, the validity period is 3 days, and the system automatically deletes the data when it expires.
Select the instance you want to take a backup of, and click “New Backup”.
Enter a backup name in the label and click “Create” to acquire the backup.
A backup has been created. Check the expiration date, and if it holds more than 3 days, take another backup.
Managing Backups
Once you have created a backup, you can “Edit”, “Delete”, or “Restore” it. Click “Edit” to change the backup name, and “Delete” to delete the backup.
Note that “Edit” and “Delete” are only available for on-demand backups. System-generated backups can only be “restored” as described below.
Restoring an Instance
Restoration of the instance can be performed by “Restore” of the backup that was taken.
The source is the current backup, and in “Select destination”, select the instance to which you want to restore the backup. Note that the only instance that can be selected as the restore destination is the sandbox.
Click “Next”, and on the confirmation screen, click the “Restore” button to start the restoration.
So how do you restore a production instance from a backup?
Restore a production instance from a backup
In order to restore a production instance from a backup, you can implement the following method. This method requires at least two instances, one production and one sandbox.
*When performing a restore operation, you need to choose a time that will not affect your users and do it carefully.
- Back up production instances and sandbox instances on demand
The first step is to get a backup of the instance, both in production and in the sandbox. The method to obtain the backups is as described above for obtaining backups manually (on-demand backups). - Restore the backup of the production instance obtained in 1. above to the Sambobox instance.
The backup of the production instance will first be restored to the sandbox instance. If the production restore does not complete successfully, the sandbox instance will be used until it is restored.
Restore backups with Consulting (production) as the source instance and Dynamics Consulting (sandbox) as the destination instance.
- If 2. above can be restored without any problems, switch the production instance to the sandbox instance.
From “Edit” of the production instance, switch the instance type from “Production” to “Sandbox”.
Switch the Instance Type to “Sandbox”. Click “Next”, and then click “Save” on the confirmation screen.
Now, the production instance has been switched to a sandbox instance.
Restore the instance switched to the sandbox instance in 3. above with the backup of the production instance obtained in 1. above.
Now, we will restore the instance that was in production. The backup to be used will be the backup obtained in step 1 (in the example below, the Consulting backup). In this example, the Consulting instance is selected as both the source and destination of the restore.
Click “Next”, and on the confirmation screen, click the “Restore” button to start the restoration.
- After the restore completes successfully, return to the production instance.
Restore the instance that was switched to the sandbox above back to production. Once this is done, the restoration is complete. If the backup created in 1. above is not necessary, delete it.
What if it fails during the restore?
If the instance restore fails, you will need to reset the instance and then restore it from the backup. Note that only sandbox instances can be reset.
Also, please note that this method does not guarantee a reliable repair.
If the instance restore fails and the “Reset” button above does not appear, try to wait for a while for it to appear. If it still does not appear, you will need to contact Microsoft to check the situation.
As you can see, restoring an instance can fail, and it is expected to take a long time to restore. Because of the risks involved, it is necessary to avoid restoring instances that are in production, or to switch to sandbox instances and allow users to use them in advance.
Please also refer to the following technical information for instance backup and restore.
Backup and Restore Instances
https://docs.microsoft.com/ja-jp/dynamics365/customer-engagement/admin/backup-restore-instances
That’s it for the Dynamics 365 instance.