How to Back Up Your Public GitHub Repos

How to Back Up Your Public GitHub Repos

Ever wondered what would happen if your GitHub account got locked, or a repo got deleted by mistake? If GitHub is the only place your code lives, that's a real risk.

We have a lot of public repos under One Scales, and I wanted an easy way to back them all up regularly. Cloning each one by hand and zipping it up gets old fast, especially with more than a few repos. So we built GitHub Backup Repo, an Apify app that downloads your public repos as ZIP files in a few seconds.

In this article I'll show you how to use it, step by step. If you prefer video, here's the full walkthrough on YouTube.


Don't Feel Like Reading? We Made a Video Explaining the Full Details of the Topic. Click Here to Scroll Down to The Video

How to back up your repos

  1. Open the app on Apify. Go to apify.com and register a free account. Search for "GitHub Backup Repo" or "One Scales," or go straight to the app page. Click Try for free.
  2. Add your repo URLs. On the Input tab, add the URLs of the public repos you want to back up. Click Add for one at a time, or Bulk Add to paste them row by row. You can do one, a few, or a hundred or more. You can also pass them in programmatically.
  3. Run it. Click Save & Start and wait a few seconds. When you see "Actor succeeded," it's done. The app downloads all the code from each repo's main branch.
  4. Download your backup. Scroll down to the results. You get one row per repo, plus one ZIP file with all the repos together. Go to the Download Links column to download repos one by one or the combined ZIP. Double-click the file and it unzips.
  5. Check and export the results. Each row also shows how many files are inside the repo and the total size. To save the list, click Export and download it as JSON, CSV, or any other format Apify supports.

How to automate your backups

A one-time backup is good. A backup that runs by itself is better.

Schedule it. Click Schedule Actor, pick how often you want it to run, set the time, and click Create. We back up our One Scales repos once a month.

Save it to Google Drive. Add an integration so each scheduled run uploads its ZIP to Google Drive. After that, everything is saved and backed up automatically.

Connect it to your own tools. Click the API tab to get your API key and endpoint details. From there you can call the app from your own code, from make.com, or even from your AI through the MCP configurator.

Try it out

Setup takes about a minute, and each run takes a few seconds. You can try GitHub Backup Repo for free on Apify.

If you have any questions about how it works, or suggestions for new features, just let us know. Much appreciated.

View Entire Topic Via Our Youtube Walkthrough:

The Best Shopify Growth Course Online Today

Stuck with sales or starting a new ecommerce shop? Take your Shopify store to the next level. Our comprehensive online course is expertly crafted to equip you with the skills, tools, and knowledge you need to boost your store’s sales and make a real-world impact

Leave a comment

Please note, comments need to be approved before they are published.

Tags

Thank You For Reading Our Articles!

We're committed to delivering real answers, valuable insights, and efficient knowledge online. Join us by subscribing, sharing, and engaging with our community to make a difference!