In this article:
Overview
This article is continuation of the Opening a restore view article that describes how-to get into the restore view. That part describes how to proceed with the restore, including; choosing the version, the exact data and information and performing the process with GitProtect.
Selecting the backup plan
So the first step after getting into restore window is to select the backup plan that we want to restore the data from.
Click on Select the backup plan and choose one of the available plans from the list.
After doing so, head to Backup copies section.
Choosing backup version
This section gives you possibility to choose the backup version between all the backups that have been already performed.
Choose desired date and click on button, which will display another window, where you can choose data to restore.
Select data to restore
By default the system restores whole repository(all the files included in it, the source code, etc.), but the metadata of the repository is optional. GitProtect allows you to choose only part of metadata, which consists of: wiki, issues, download, hooks, deployment keys and pull requests.
Each element can be included/excluded by turning on/off the switch next to it.
There's one more additional option below all these, namely Wiki recovery.
If you have your repository already available on GitHub/BitBucket you can restore only Wiki.
Select the destination
Restoring whole repository
After choosing the repository and the metadata that you want to include during the restore process click on Restore selected button or Restore all button, which will open another aside called Restore data.
It consists of 4 sections:
Data to restore
Which was available in the previous step, but you can still edit it.
Restore to
That allows you to select the destination of restore process. At this moment it gives you possibility to select one of the assigned organizations of any Git service.
Restore settings
Where you can set the custom name for repository that will be created during the restore process.
It is possible to enter a new repository name in the following variants.
- If you enter organization/name (eg Xopero/project1) the repository will be restored with the choose name to the indicated organization.
In the example given, it will be the project1 repository in the Xopero organization. If the organization name entered does not exist, the repository will be simply restored to your account.
- If you enter only the name of the repository (e.g. project1) and the organization from which the repository comes is registered in GitProtect, the repository will be restored there. If the organization is not registered, the repository will simply be restored to your account.
- When you enter the name of a repository that already exists in your organization, the restore will fail.
Restoring will never overwrite existing repositories in the organization. If you do not choose the repository name, the restored repository will have its original name with an automatically generated suffix, e.g. project1_342d2 for the repository, which was originally named project1.
Device used to restore the data
The last section, which gives possibility to choose the device, that will be responsible for performing the restore.
After defining all these parameters click Start now button, which will run the restore process.
Restoring wiki only
After choosing to Restore wiki only the process will be quite similar. In new aside that will appear after clicking the button you'll be able to see 2 sections:
Restore to
Device used to restore the data
The last section, which gives possibility to choose the device, that will be responsible for performing the restore.
After defining all these parameters click Start now button, which will run the restore process.
When the restore process will be over, a new repository will be created in your organization account.