All pages
Powered by GitBook
1 of 11

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Recovering teams

Learn about recovering GitHub Enterprise teams in Xopero ONE.

When restoring repositories, one type of metadata that can be restored is teams. Xopero ONE ensures that teams and their associated users are reinstated.

Before starting the restoration process, a prompt will inform you of this action—accepting the prompt will restore teams and send invitations as needed. Canceling the prompt will exclude teams from the restoration process.

This process may include sending invitations for users to rejoin the organization.

Recovering multiple repositories

In this article, you will learn how to restore multiple repositories to a Git service or localhost.

Recovery process

1

Get into the restore view using the following method:

  1. Open the GitHub tab (DevOps > GitHub), then click the Restore button next to the organization whose backup you want to restore.

You can also use the Explore button to restore your data.

  1. Select the repositories you want to restore and click the Restore selected button in the top menu.

2

By clicking an individual repository, an aside will appear where you can select a backup plan and a backup version to restore. Click Select under your chosen backup copies to continue.

3

Select the destination for the restore process. You can choose one of the assigned organizations from any Git service or any device.

4

In the Data to restore section, you can use the switch to include or exclude metadata in the backup.

5

Next, select the destination where you want to restore the data.

In Map organizations section, select the target organizations where the repositories will be restored.

In the Restore settings, you can configure the following options:

When you toggle Restoring repos with custom name switch, a window will appear allowing you to rename one or more repositories.

6

In Device used to restore the data section, choose the device that will be responsible for performing the restoration.

7

After defining all parameters, click the Start now button to begin the restore process. When the process is complete, new repositories will be created in your organization account.


  1. Select the destination device.

  2. Make sure the device where you want to restore data has the Xopero ONE agent installed and the Git client added to the PATH environment variable. The PATH variable is usually configured automatically after Git installation (a system restart may be required). If it isn’t, set it manually to the path of the git.exe file: C:\Program Files\Git\bin\git.exe

  1. Select the directory where you want the data to be restored.

  1. Additionally, in the Restore settings, you can limit bandwidth usage during the recovery process.

Support for backing up projects (classic) has been removed. It is now available only for restoring previously backed-up projects (classic) — when restored, projects (classic) are automatically converted into projects v2.

A. Restore to a Git organization

During restoration to GitHub, the Use existing projects instead of creating new ones option becomes available. When restoring projects v2, this option restores the data into the existing projects rather than creating new ones.

If the recovery destination is Azure DevOps, the Map organizations section will be replaced by Target organization and Target project settings.

Useful links and items

Xopero ONE Agent
Cross-recovery for DevOps organizations
LFS recovery for DevOps organizations
Wiki recovery for DevOps organizations
Throttling prevention

Restoring never overwrites existing repositories in the organization — if you do not choose a repository name, or if you enter the name of a repository that already exists in your organization, the restore will fail. To complete the restoration successfully, you must choose a unique repository name or select the Add suffix to repo name option so the restored repository keeps its original name with an automatically generated suffix.

B. Restore to a device

To restore a repository to a local device, you must have a Git client installed on that device.

You can restore only the repository (without metadata) when restoring data to local resources.

To configure the PATH variable, open the environment variables, select the PATH variable, and click the Edit button. Copy the path to the git.exe file and add it to the PATH variable.

If a repository already exists in the selected folder, you can choose to overwrite the existing data.

Creating a backup plan

This article describes how to create a backup plan to back up your GitHub Enterprise repositories.

Backup plan setup

1

Login to XMS, open the Plans > Backup tab and click the Add plan button in the top bar.

2

Select GitHub from the list.

3

Select (or add) the GitHub Enterprise environment you want to include in the backup process, and choose the repositories to back up.

4

Specify a name for the backup plan.

5

Select the appropriate metadata that you want to back up. Here, you can also change the default worker, which is the device directly responsible for the backup process of your repositories.

6

Select one of the locations assigned to your Xopero ONE instance as storage.

7

Customize the scheduler and specify how long your data should be retained. If needed, adjust the advanced settings to suit your needs.

8

If necessary, adjust the advanced settings such as encryption, error handling, or bandwidth limits to fit your requirements.

9

Double-check your data and click Save to create the backup plan.


In Xopero ONE, you can select repositories based on custom properties, but these properties must be configured at the organization level in GitHub. During synchronization, Xopero ONE retrieves the property definitions from the organization and the assigned values from the repositories. After synchronization, the panel displays a list of all properties fetched from every organization on the GitHub side that was added to XMS. For the feature to work correctly, the token used for authorization must also include the read:org permission.

Optionally, Xopero ONE allows you to protect the entire GitHub Enterprise environment.

You can have multiple workers and assign different workers to each backup plan.

It is worth noting that the cloud worker (a cloud-installed Xopero ONE worker) allows you to perform cloud-to-cloud backups if you want to store your backups in the cloud.

Useful links and items

Cloud storage
Xopero ONE worker
Scheduler & retention

Integration

Required permissions
Adding GitHub Enterprise organization to Xopero ONE
Cover
Cover

Required permissions

Xopero ONE supports backup and restore for GitHub Enterprise Cloud deployments that are separated from the main GitHub environment (for example, your-org.ghe.com). You can integrate isolated GitHub Enterprise Cloud instances as GitHub Enterprise Cloud with Data Residency.

Account

The application requires the following permissions to log into your account:


The minimum authorization permission required for the token to register the Xopero ONE application and perform repository backup or restore is repo.

Personal Access Token (PAT)

You can generate a personal access token in the Tokens tab of your GitHub Enterprise account.

With minimal privileges, certain metadata may not be included in the backup process. Select the necessary permissions based on the specific data you need to protect.

Single repository recovery

In this article, you will learn how to restore a single repository to a Git service or localhost.

Recovery process

1

Get into the restore view using the following method:

  1. Open the GitHub tab (DevOps > GitHub), then click the Restore button next to the organization whose backup you want to restore.

You can also use the Explore button to restore your data.

  1. Search for the repository you want to restore, and click the Restore button in the action menu of that repository.

2

Next, select the backup plan from which you want to restore data. Click View available plans and choose one of the plans from the list.

3

Choose the backup version from all the backups that have already been performed — select the desired date and click the Restore button.

4

Select the destination for the restore process. You can choose one of the assigned organizations from any Git service or any device. After selecting the repository and the metadata you want to include, click the Restore selected or Restore all button to proceed.

5

In the next aside, click Edit next to Data to restore if you need to adjust it.

6

Next, select the destination where you want to restore the data.

In Map organizations section, select the target organization to which the repository will be restored.

In Restore settings you can set a custom name for the repository that will be created during the restore process and limit the internet bandwidth.

You can enter a new repository name in one of the following formats:

7

In Device used to restore the data section, choose the device that will be responsible for performing the restoration.

8

After defining all parameters, click the Start now button to begin the restore process. When the process is complete, a new repository will be created in your organization account.


If you enter organization/name (e.g., xsupport/test), the repository will be restored with the chosen name in the specified organization. If the entered organization does not exist, the repository will be restored to the source organization.

  • If you enter only the repository name (e.g., test) and the source organization is registered in Xopero ONE, the repository will be restored there. If the organization is not registered, the repository will be restored to your account.

    1. Select the destination device.

    2. Make sure the device where you want to restore data has the Xopero ONE agent installed and the Git client added to the PATH environment variable. The PATH variable is usually configured automatically after Git installation (a system restart may be required). If it isn’t, set it manually to the path of the git.exe file: C:\Program Files\Git\bin\git.exe

    1. Select the directory where you want the data to be restored.

    Xopero ONE allows you to select specific metadata to restore — each element can be included or excluded by toggling the switch next to it. Additionally, there is a Wiki recovery option below these settings. If your repository already exists in GitHub Enterprise, you can choose to restore only the Wiki.

    Support for backing up projects (classic) has been removed. It is now available only for restoring previously backed-up projects (classic) — when restored, projects (classic) are automatically converted into projects v2.

    A. Restore to a Git organization

    During restoration to GitHub, the Use existing projects instead of creating new ones option becomes available. When restoring projects v2, this option restores the data into the existing projects rather than creating new ones.

    If the recovery destination is Azure DevOps, the Map organizations section will be replaced by Target organization and Target project settings.

    Useful links and items

    Xopero ONE Agent
    Cross-recovery for DevOps organizations
    LFS recovery for DevOps organizations
    Wiki recovery for DevOps organizations
    Throttling prevention

    Restoring never overwrites existing repositories in the organization — if you do not choose a repository name, or if you enter the name of a repository that already exists in your organization, the restore will fail. To complete the restoration successfully, you must choose a unique repository name or select the Add suffix to repo name option so the restored repository keeps its original name with an automatically generated suffix.

    B. Restore to a device

    To restore a repository to a local device, you must have a Git client installed on that device.

    You can restore only the repository (without metadata) when restoring data to local resources.

    To configure the PATH variable, open the environment variables, select the PATH variable, and click the Edit button. Copy the path to the git.exe file and add it to the PATH variable.

    If a repository already exists in the selected folder, you can choose to overwrite the existing data.

    Protected resources

    In this article, you will get information about all protected resources, elements and metadata in GitHub Enterprise.


    GitHub protected resources define which repositories and data Xopero ONE can access, secure, and restore.

    Protected data

    Support for backing up projects (classic) has been removed. It is now available only for restoring previously backed-up projects (classic) — when restored, projects (classic) are automatically converted into projects v2.

    Protected metadata for projects (classic) include cards, issues assigned to cards, pull requests assigned to cards, columns, and notes.

    ACTIONS AND PIPELINES
    BRANCH PROTECTION RULES
    COLLABORATORS
    DEPENDABOT
    ISSUES
    LABELS
    MILESTONES
    PROJECTS (V2)
    PULL REQUESTS
    REPOSITORY
    TEAMS
    RELEASES
  • Recovery

    Cross-recovery for DevOps organizations
    Single repository recovery
    Recovering multiple repositories
    Wiki recovery for DevOps organizations
    Recovering teams
    Cover
    Cover
    Cover
    Cover
    Cover

    GitHub Enterprise

    Integration
    Backup
    Recovery
    Cover
    Cover
    Cover

    Adding GitHub Enterprise organization to Xopero ONE

    Learn how to integrate your GitHub Enterprise organization with Xopero ONE using a personal access token (PAT).

    Integrating a GitHub Enterprise organization with Xopero ONE allows centralized backup and management of all repositories within the selected GitHub environment. Once the organization is connected, administrators can set backup schedules, apply retention policies, organize repositories into groups, and monitor synchronization status and backup times directly from the dashboard to ensure consistent protection and compliance with data security policies.


    Important notice

    Integration with GitHub Enterprise Cloud and GitHub Enterprise Server in Xopero ONE is only possible through a personal access token (PAT).

    Additionally, if a GitHub Enterprise Cloud organization with data residency includes managed users with SSO enabled, the token must be authorized. Although authorizing the token in a single organization allows Xopero ONE to retrieve all organizations, we recommend authorizing each one you intend to protect. Token authorization is also required in any organization to which you plan to restore data.

    You can find more information about token authorization in the section.


    Integration process

    The below steps demonstrate how to quickly integrate a GitHub Enterprise organization with Xopero ONE using Xopero ONE Management Service.

    1

    Open the DevOps tab on the left side of the window and select GitHub from the list.

    2

    Click Connect under the appropriate GitHub Enterprise instance type (GitHub Enterprise Server or GitHub Enterprise Cloud with Data Residency).

    3


    In Settings, enter the GitHub Enterprise service address and add or select a personal access token (PAT) from the Password Manager.

    4

    Choose whether Xopero ONE should automatically add new repositories to your backup.

    5

    Configure the repository synchronization and the default worker. Specify the synchronization start time or set a time interval for automatic updates.

    6

    Click Proceed to complete the process of adding your GitHub Enterprise organization and grant Xopero ONE access to the specified resources.

    7

    Your GitHub Enterprise organization has been successfully added to Xopero ONE. Click Custom policy to modify the backup policy settings, or click Run backup to start the backup immediately using the current policy configuration.

    Xopero ONE supports backup and restore for GitHub Enterprise Cloud deployments that are separated from the main GitHub environment (for example, your-org.ghe.com). You can integrate isolated GitHub Enterprise Cloud instances as GitHub Enterprise Cloud with Data Residency.

    If you already have a GitHub Enterprise organization added, click the + Add new button in the top-left corner first.

    Useful links and items

    Useful links and items
    Managing your personal access tokens - GitHub Enterprise Server 3.4 DocsGitHub Docs
    Logo
    Authorizing a personal access token for use with single sign-on - GitHub Enterprise Cloud DocsGitHub Docs
    Logo
    Managing your personal access tokens - GitHub DocsGitHub Docs
    Logo

    Backup

    Protected resources
    Creating a backup plan
    Cover
    Cover