{"id":19716391,"url":"https://github.com/computestacks/controller-backups","last_synced_at":"2026-06-12T19:32:16.932Z","repository":{"id":152867843,"uuid":"436752211","full_name":"ComputeStacks/controller-backups","owner":"ComputeStacks","description":"(MIRROR) Automated Controller Backups","archived":false,"fork":false,"pushed_at":"2021-12-10T16:05:40.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T22:04:25.126Z","etag":null,"topics":["backup","rclone"],"latest_commit_sha":null,"homepage":"https://git.cmptstks.com/cs-public/ops/controller-backups","language":"Shell","has_issues":false,"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/ComputeStacks.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-09T20:28:21.000Z","updated_at":"2022-04-12T20:13:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"aef1fb2c-e8d1-49da-a11e-37e377767a03","html_url":"https://github.com/ComputeStacks/controller-backups","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ComputeStacks/controller-backups","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fcontroller-backups","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fcontroller-backups/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fcontroller-backups/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fcontroller-backups/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ComputeStacks","download_url":"https://codeload.github.com/ComputeStacks/controller-backups/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fcontroller-backups/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34260309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["backup","rclone"],"created_at":"2024-11-11T22:41:56.728Z","updated_at":"2026-06-12T19:32:13.340Z","avatar_url":"https://github.com/ComputeStacks.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automate ComputeStacks Controller Backups\n\nThis is a cron job that will automatically backup the controller database, retain a fixed number of backups, and optionally sync using rclone. \n\nThis will only backup the database, please be sure to separately take a backup of the `/etc/default/computestacks` file. This is only generated once during installation and will not change. \n\n## Installation\n\n### Install files and dependencies\n\nThis script will install our two scripts, and rclone.\n\n```bash\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/ComputeStacks/controller-backups/main/install.sh)\"\n```\n\n### Configure rclone\n\nBefore proceeding, decide which storage system you will use: https://rclone.org/overview/\n\nUse `rclone config` to setup and configure your storage system. Take note of the name you give your storage account.\n\n### Configure backups\n\nAdd the following to `/etc/default/computestacks`, and make any necessary changes\n\n```bash\nLOCAL_BACKUPS_TO_KEEP=7\nRCLONE_PROFILE= # This is the name you set when using `rclone config`.\nRCLONE_REMOTE_PATH= # bucket name. May also include path in bucket, example: mybucket/somepath\n```\n\n### Setup cron\n\nUse `crontab -e`\n\n#### Examples\n\n```\n# Run everyday at 03:30\n30 3 * * * /usr/local/bin/controller-backup \u003e\u003e /var/log/rclone/controller-backup.log 2\u003e\u00261\n```\n\n```\n# Run every 12 hours\n0 */12 * * * /usr/local/bin/controller-backup \u003e\u003e /var/log/rclone/controller-backup.log 2\u003e\u00261\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomputestacks%2Fcontroller-backups","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomputestacks%2Fcontroller-backups","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomputestacks%2Fcontroller-backups/lists"}