r/bash • u/bonesf • Aug 02 '22
I've written bash script to backup GitHub repositories filtered by user
The backup script collects the Repository Clone URL, Name and Size using the GitHub api.
The Size variable determines if the Repo isn't empty.
It then rotates though the list cloning, fetching and pulling as required. It runs frequently storing to an old Raspberry Pi.
I decided to create this backup because I realised that Github is a single point of failure for storing code.
7
Upvotes
Duplicates
ServerTribeAttune • u/bonesf • Aug 04 '22
I've written bash script to backup GitHub repositories filtered by user
1
Upvotes