{"id":706,"date":"2018-08-01T06:00:55","date_gmt":"2018-08-01T06:00:55","guid":{"rendered":"http:\/\/buklijas.info\/blog\/?p=706"},"modified":"2018-08-15T10:35:03","modified_gmt":"2018-08-15T10:35:03","slug":"how-to-backup-personal-github-repositories","status":"publish","type":"post","link":"http:\/\/buklijas.info\/blog\/2018\/08\/01\/how-to-backup-personal-github-repositories\/","title":{"rendered":"How to backup personal GitHub repositories"},"content":{"rendered":"
Published on:<\/strong> 01.08.2018<\/p>\n I will show how to do a backup of your GitHub repositories<\/a> with python-github-backup<\/a><\/p>\n I can already see that there will be comments regarding why to do the backup of GitHub.<\/p>\n Response to all those comments is: If forever reason (GitHub go under, all repositories deleted by accident, alien attack) GitHub is not available anymore, I have my own backup of code that I have written.<\/p>\n If you are looking for a paid solution, BackHub<\/a> looks like a good solution. After researching all<\/a> available<\/a> options<\/a> I have decided to go with python-github-backup<\/a> because it had more stars and contributors on GitHub than other projects.<\/p>\n I have used the number of stars and contributors on GitHub as the assumption that python-github-backup<\/a> is more in use than other solutions so there are more people who will continue to support it in future.<\/p>\n In order to access your GitHub personal data, you need to have a personal access token<\/a>.<\/p>\n After that, you can install it with Run it with: This command will backup all your GitHub information to Why to bother with a backup of GitHub<\/h2>\n
\n
\nYou will not be worst off if you have your own backup.<\/strong><\/p>\nPaid solution<\/h2>\n
\nI have no experience with BackHub, nor am I in any way associated with it.<\/p>\nFree solution<\/h2>\n
pip\/pipenv<\/code>:
\n(I have installed it in separate virtualenv)<\/p>\npipenv install github-backup<\/code>
\nor
\npip install github-backup<\/code><\/p>\n
\n\/full\/path\/github_backup\/venv\/bin\/github-backup sasa-buklijas -t your_personal_access_token -o \/full\/path\/github_backup --all<\/code><\/p>\n
\/full\/path\/github_backup directory<\/code>.<\/p>\n