What is Backup Draft to GitHub?
The Backup Draft feature is exclusively available for Pro users and allows you to create backups of your drafts to a GitHub repository.
Please note that this feature is separate from backing up your articles to GitHub which is a free tier.
To use this feature, you will need to set up GitHub backup on your Hashnode account. You can refer to this guide for instructions on how to do so.
The same repository will be used for both GitHub backup and Draft backup.
Renaming the repository on Github will result into failing backup and would require reconfiguring.
Backing up your Drafts to GitHub
Step 1: On your editor, click the menu dropdown icon and select the "Backup this draft" option.
If you attempt to backup a draft from a non-pro blog, you'll be requested to subscribe to Hashnode Pro plan.
Step 3: Your draft will be automatically saved to your GitHub repository, and you can view it in your blog repository as demonstrated below:
Backing up all your Drafts to GitHub at once
Once you have enabled the backup of drafts to GitHub on your blog, you can use your backup dashboard to backup all of your drafts to GitHub at once.
Step 1: Navigate to "Backup" tab on your dashboard.
Step 2: Switch to the "Drafts" tab and then click the button labeled "Backup all drafts" located in the table header as shown below:
Step 3: Ensure that all your drafts are completely backed up. You can verify this by checking the status indicator shown below.
Step 4: Subsequently, your Hashnode repository will then be updated as shown below.