Many developers have a personal blog on Hashnode, one of the most popular blogging communities for people exploring tech.

I also write on Hashnode, but recently I was thinking about whether there is any way to backup my published articles to GitHub. Fortunately, I have found an easy way to do that directly from Hashnode itself.

So, in this article, I will share the process so that you can also create an automatic backup of your articles to your GitHub repository. There's no harm in trying something new, right? 😊

✨ I have also created a full length video showing the process of creating that automatic backup to your GitHub repo. I have attached the video later in this article. You can also check that out.

Firstly, let me show you my Hashnode account. This is just a sample of a typical profile there.

2022-04-28-13-42-26.00_00_31_58.Still002

I have published only one article (as of today, 15 May 2022). But I still want to create an automatic backup process for this account so that whenever I write something new, all of the articles get copied into my selected GitHub repository as a backup.

So let's do that, shall we? 😁

How to Backup Your Hashnode Articles to GitHub

Go to your GitHub account. We need to create a special repository first where we will create an automatic backup process.

Screenshot-2022-05-15-093838

Now simply click on the + button on the top right of the webpage.

2022-04-28-13-42-26.00_01_54_29.Still004

Now click New repository.

2022-04-28-13-42-26.00_02_00_23.Still005-1

Now we have to create a new repository. The process is similar to creating any other repository.

2022-04-28-13-42-26.00_02_03_28.Still006

You can make the repository Public or Private as you see fit for yourself. I am making it a Private repository, but you do not have to do that if you don't want to.

2022-04-28-13-42-26.00_02_41_42.Still008

Give the repository any name you want.

2022-04-28-13-42-26.00_02_57_02.Still009

For the latter, you can select anything you want. For this article, I am keeping it simple as it was.

2022-04-28-13-42-26.00_03_18_19.Still010

Then click Create repository.

2022-04-28-13-42-26.00_03_37_16.Still011

After that, you actually do not need to do anything in that repository for now.

2022-04-28-13-42-26.00_03_41_19.Still012

So, I am keeping it as it is right now.

Now, head over to your Hashnode account.

Click your profile icon on the top right of the profile page.

2022-04-28-13-42-26.00_03_46_36.Still013

Select the blog you want to backup. For me, it is https://fahimbinamin.hashnode.dev/.

2022-04-28-13-42-26.00_03_47_50.Still014

Click Blog Dashboard.

2022-04-28-13-42-26.00_03_53_36.Still015

The blog dashboard will appear before you.

2022-04-28-13-42-26.00_03_58_22.Still016

Simply scroll down until you find Backup. You will find that on the lower left side of the webpage. Click on that.

2022-04-28-13-42-26.00_04_12_46.Still017

You will find the GitHub Backup page now.

2022-04-28-13-42-26.00_05_03_47.Still020

Click on Back up all my posts.

2022-04-28-13-42-26.00_05_03_47.Still020-1

Select where you want to install it.

2022-04-28-13-42-26.00_05_06_45.Still021

As I am involved in 5 GitHub organizations right now, it's suggesting all of them to me. As I want to create the backup on my personal GitHub account, I will select my profile FahimFBA.

2022-04-28-13-42-26.00_05_33_05.Still022

The install and authorize section will appear.

2022-04-28-13-42-26.00_05_44_25.Still023

By default, it will select "All repositories". But keep in mind, that you shouldn't select All repositories, as that will rewrite all of the repositories you currently have in your personal GitHub account.

2022-04-28-13-42-26.00_05_50_45.Still024

Select "Only select repositories", and find the repository which you have created for backing up your Hashnode blogs.

2022-04-28-13-42-26.00_06_14_16.Still025

Simply click and select the repository.

2022-04-28-13-42-26.00_06_19_37.Still026

If everything is okay, then you can click "Install & Authorize", but again keep in mind that you must not select All repositories.

2022-04-28-13-42-26.00_06_39_58.Still029

Provide your GitHub account's password if it asks for that.

2022-04-28-13-42-26.00_06_42_26.Still030

If will redirect you to Hashnode to continue the installation process.

2022-04-28-13-42-26.00_06_47_38.Still031

You've now created your automatic backup. If you want to back up the existing posts, then you have to click "Back up all my posts".

2022-04-28-13-42-26.00_07_31_47.Still032

It will backup every post you had before creating the automatic backup.

2022-04-28-13-42-26.00_07_33_09.Still033
2022-04-28-13-42-26.00_07_38_56.Still034

Now, if you simply refresh the GitHub repo webpage (the repo you created only for backing up this Hashnode blog), you will see that it has been updated as well!

2022-04-28-13-42-26.00_07_59_50.Still036

You can even read the article directly from your backed up repo.

2022-04-28-13-42-26.00_08_02_00.Still037

That's it!

If you want to watch a video that covers the whole process, then you can check out the following video that I made:

Conclusion

I want to thank you all from the bottom of my heart for reading the entire article. If you want to have a chat with me then I am available on Twitter and LinkedIn for that.

I am also available on:

GitHub: https://github.com/FahimFBA

English YouTube channel: https://www.youtube.com/channel/UCG97GCUifMS2Vm28tgXQi0Q

Bengali YouTube channel: https://www.youtube.com/c/InnovationWithIphim

My developer highlights: https://www.polywork.com/fahimbinamin