To download an archive of your repository, you can use the API for user or organization migrations. For more information, see "Migrations."
A number of self-service tools exist that automate backups of repositories. Unlike archival projects, which archive all public repositories on GitHub Enterprise Cloud that have not opted out and make the data accessible to anyone, backup tools will download data from specific repositories and organize it within a new branch or directory. For more information about archival projects, see "About archiving content and data on GitHub." For more information about self-service backup tools, see the Backup Utilities category on GitHub Marketplace.