{"id":15140410,"url":"https://github.com/geek-md/homebridge-config-backup-shell-script","last_synced_at":"2026-01-20T12:33:10.600Z","repository":{"id":129361759,"uuid":"566167570","full_name":"Geek-MD/Homebridge-Config-Backup-Shell-Script","owner":"Geek-MD","description":"Bash script used to automate local backup of config.json of a Homebridge instance runing inside a Docker container","archived":false,"fork":false,"pushed_at":"2022-12-28T21:05:34.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T19:39:11.653Z","etag":null,"topics":["cron","docker","homebridge","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Geek-MD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-15T05:10:58.000Z","updated_at":"2024-05-31T08:44:59.000Z","dependencies_parsed_at":"2023-04-07T07:01:21.396Z","dependency_job_id":null,"html_url":"https://github.com/Geek-MD/Homebridge-Config-Backup-Shell-Script","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geek-MD%2FHomebridge-Config-Backup-Shell-Script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geek-MD%2FHomebridge-Config-Backup-Shell-Script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geek-MD%2FHomebridge-Config-Backup-Shell-Script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geek-MD%2FHomebridge-Config-Backup-Shell-Script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Geek-MD","download_url":"https://codeload.github.com/Geek-MD/Homebridge-Config-Backup-Shell-Script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247487810,"owners_count":20946829,"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":["cron","docker","homebridge","shell-script"],"created_at":"2024-09-26T08:20:39.017Z","updated_at":"2026-01-20T12:33:10.592Z","avatar_url":"https://github.com/Geek-MD.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Homebridge Config Backup Shell Script\nThis is a bash script that allows you to automate local backup of *config.json* of a Homebridge instance runing inside a Docker container.\n\nWith v1.2.1, this script implements unix-like command structure, so if you want to use a working directory different from default one, you must use ***-d*** option along with the path to that directory.\n\nThings to do after dowloading script\n\n- Make shell script executable runing \"chmod u+x homebridge-config-backup.sh\"\n- Edit cron with \"crontab -e\" command and add the subsequent line at the end, replacing *\u003cabs_path\u003e* with the location where you stored *homebridge-config-backup.sh*, and *\u003cworking_directory\u003e* with the directory where backups will be stored, without *$HOME* path.\n\n  \u003e  0 * * * * bash /\u003cabs_path\u003e/homebridge-config-backup.sh -d \u003cworking_directory\u003e\n  \n- Save cron using Ctrl-O\n- Exit editor with Ctrl-X\n- Reboot so changes take effect\n\nThe cron example will run the script every hour. The script will attempt to copy *config.json* from Homebridge docker container to local storage, check if md5sum of copied file and existing backup are equal or different. If md5sum is different, the script will create a backup including md5sum in the name of the file, and write down the result of the task on a log file, so you can check the timeline of all the backups.\n\nObviously you can change the time interval at wich the script runs modifying the cron command. I recomend https://crontab.guru to do that.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeek-md%2Fhomebridge-config-backup-shell-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeek-md%2Fhomebridge-config-backup-shell-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeek-md%2Fhomebridge-config-backup-shell-script/lists"}