Skip to main content

How to restore GitHub data

Written by ProBackup

This article explains the restore capabilities for GitHub in ProBackup.

No one-click restore

ProBackup can't restore GitHub data directly back into your GitHub account. Your GitHub data is backed up and can be viewed and exported from ProBackup, and you can download a full copy of any repository to restore it yourself.

Restore a repository from a snapshot

Each repository snapshot is a complete copy of the Git repository (all branches and tags with their full history), packed as a .tar.gz file.

  1. In ProBackup, open your GitHub backup and go to Repository snapshots.

  2. Select the repository and download the snapshot from the date you want to go back to.

  3. Unpack it into a new folder, for example: mkdir my-repo.git && tar -xzf <snapshot-file>.tar.gz -C my-repo.git

  4. Create a new, empty repository on GitHub (without a README).

  5. Push everything to it: cd my-repo.git && git push --mirror https://github.com/<owner>/<new-repo>.git

To just look at the files instead, run git clone my-repo.git my-repo.

Note: Issues, pull requests, wikis and releases are not part of the backup, so they can't be restored this way. Git LFS file contents are not included in the snapshot.

Did this answer your question?