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
1. On your editor, click the menu dropdown icon and select the "Back up this draft" option.
Once it’s done loading, the time of backup will be displayed on the option.
2. Also, on your dashboard, GitHub tab, and your GitHub repository, you’ll find the backed up draft.
On your GitHub repository, you’ll find the draft markdown, identified with the prefix (draft).
Backing up all your Drafts to GitHub at once
The “Back drafts to GitHub“ dashboard has a button to back up all drafts. This option automatically saves all your drafts to your GitHub repository.