Let’s face it, GitHub is the most popular and arguably one of the best git services available today. As such, thousands of development teams worldwide use the platform to host their code, improve productivity, and ensure they stay efficient.
However, things can go wrong. And, sometimes, they will. In these situations, you’ll need backups of your GitHub data to ensure that you have access to your code and that your team can keep working.
In this post, we’ll show you how to back up your GitHub data with SimpleBackups.
Before looking at the backup process in more detail, let’s first look at what data you should back up. Ideally, to ensure your data is properly protected, you should back up all your repositories, including their related metadata.
This means you should back up:
Apart from backing up these, you should also consider your needs and requirements, and schedule your backups to meet these needs. Combined, this will ensure you have the complete data available should disaster strike.
Before you can back up your data with GitHub, you’ll need to create a personal access token that you’ll use to connect GitHub to SimpleBackups. These tokens allow you to access your GitHub resources when using the GitHub API or command line.
Currently, GitHub supports two types of personal access tokens - fine-grained personal access tokens and classic personal access tokens.
Note: SimpleBackups currently supports the classic token, which can be going to generate a new classic token.
To create a classic personal access token, you can follow the steps provided by GitHub here.
Once you’re done, you should copy the token to use later to set up the connection with SimpleBackups.
Now that your token is saved, you can create your backup on SimpleBackups by configuring a GitHub recipe.
To do this, you’ll first log into your SimpleBackups account. You’ll have a few options for creating your GitHub backup on your dashboard.
Firstly, you can scroll down the page and click on the GitHub Backup tile. If the tile doesn’t appear on your dashboard, click Show all.
Another way to create your backup is to click on Backups in the top menu.
On the page that opens, click on Create Backup +.
Once done, you’ll get to the same screen you would have had you used the first method.
Here, it’s essential to ensure that both the Recipe and GitHub Backup tiles are selected.
For the next step, you’ll need to configure your backup recipe.
Here, you’ll paste the token you generated earlier and enter your GitHub username.
You’ll also select several options based on your unique circumstances:
In this example, we’ve pasted the token into the relevant text box, entered our GitHub username, and selected to perform a full backup of a specific repository.
For the next step, you’ll need to choose the server that will run the backup. You have two options:
In this example, we’ll use the Serverless option. So, we’ll make sure that the correct tile is selected.
You can then click Validate to confirm the connection.
The final step, after you’ve validated the connection, is to choose:
There you go; now you know how easy it is to back up your GitHub data with SimpleBackups!
But why should you use SimpleBackups?
Well, for one, when using SimpleBackups, you can connect almost any storage you’d prefer. You’ll be in complete control of your data and won't depend on the SimpleBackups platform to recover your data.
When using the platform, you’ll have access to the SimpleBackups notification system. This, in turn, gives you access to email and Slack notifications, task summaries, and even advanced audit logs relating to your backups. You’ll never be in the dark about your GitHub backups.
To learn more about SimpleBackups, our range of innovative features, and how our platform can help you, get started for free today.
Free 7-day trial. No credit card required.
Not convinced yet? Need help?
Get in touch via chat or at [email protected]