A simple script to backup all your GitHub organization repositories.
-
Clone this repository to your local directory. Then run the following command to install the dependencies:
npm install
-
Create a new Github personal access token
-
Fill in the
Main.js
file with your Github personal access token, the name of the organization you want to backup and the backup directory.Parameters Description auth_key Github personal access token org_name The name of the organization path Backup directory -
Run the following command to start the process, the process will automatically be excuted every hour. You may also find logs in your backup directory.
node Main.js