{"id":17928667,"url":"https://github.com/hartwork/backup-my-hub","last_synced_at":"2025-09-18T15:32:59.416Z","repository":{"id":26661688,"uuid":"30118056","full_name":"hartwork/backup-my-hub","owner":"hartwork","description":":octopus: Simple command line tool to make local backups of GitHub repositories and gists (Python)","archived":false,"fork":false,"pushed_at":"2020-09-29T21:41:55.000Z","size":16,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-30T20:51:30.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hartwork.png","metadata":{"files":{"readme":"README.asciidoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-31T16:31:01.000Z","updated_at":"2021-12-07T15:41:24.000Z","dependencies_parsed_at":"2022-07-25T16:00:06.708Z","dependency_job_id":null,"html_url":"https://github.com/hartwork/backup-my-hub","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fbackup-my-hub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fbackup-my-hub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fbackup-my-hub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fbackup-my-hub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hartwork","download_url":"https://codeload.github.com/hartwork/backup-my-hub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233496470,"owners_count":18684942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T21:04:38.042Z","updated_at":"2025-09-18T15:32:54.148Z","avatar_url":"https://github.com/hartwork.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"About\n-----\n_backup-my-hub_ is my take at a simple command line tool to backup\n\n * both Git repositories and https://gist.github.com/[gists]\n\n * for a given list of GitHub users, organizations or repositories\n\nto a given local directory.\n\nI started _backup-my-hub_ because I moved most of my Git repositories\nto GitHub and wanted to be sure that if my account or some repository\nof mine ever gets deleted or blocked, I would have a backup.\n\n\nConfiguration\n-------------\nConfiguration is rather simple, though a bit unusual.\nI picked this format for extensibility:\n\n-------------------------------------------------------------------\n# cat ~/.config/backup-my-hub/main.cfg\n[user hartwork]\n[user gentoo-ev]\n[repository gentoo/blender-gentoo-logo]\n[repository gentoo/blender-gentoo-logo-overlay]\n[repository gentoo/eassign]\n[repository gentoo/elogv]\n[repository gentoo/fetchcommandwrapper]\n[repository gentoo/grub2-themes-overlay]\n[repository gentoo/porticron]\n-------------------------------------------------------------------\n\n\nUsage (`--help` output)\n-----------------------\n-------------------------------------------------------------------\n# backup-my-hub --help\nusage: backup-my-hub [-h] [--config FILE] [--user USER] [--verbose]\n                     [--api-token TOKEN] [--version]\n                     DIRECTORY\n\npositional arguments:\n  DIRECTORY          Local directory to sync repositories and gists to\n\noptional arguments:\n  -h, --help         show this help message and exit\n  --config FILE      Configuration file to use (default: ~/.config/backup-my-\n                     hub/main.cfg, if existing)\n  --user USER        GitHub user name; if given, configured users and\n                     repositories are ignored\n  --verbose          Increase verbosity\n  --api-token TOKEN  Authenticate to the API server (e.g. to push rate limits)\n  --version          show program's version number and exit\n-------------------------------------------------------------------\n\n\nAlternatives\n------------\nIf you are looking for software doing _similar_ things but in _different_ ways, there are:\n\n * https://github.com/kennethreitz/ghsync[ghsync]\n\n * https://github.com/swdyh/gisty[gisty]\n\n * https://github.com/knu/github-sync[github-sync] (of knu)\n\n * https://github.com/adw0rd/github-sync[github-sync] (of adw0rd), fork of https://github.com/kennethreitz/ghsync[ghsync]\n\n * https://github.com/jmhobbs/github-watcher[github-watcher]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartwork%2Fbackup-my-hub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhartwork%2Fbackup-my-hub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartwork%2Fbackup-my-hub/lists"}