{"id":16364373,"url":"https://github.com/scottrobertson/backup","last_synced_at":"2025-09-02T04:05:37.286Z","repository":{"id":9875908,"uuid":"11876788","full_name":"scottrobertson/backup","owner":"scottrobertson","description":"A backup system written in PHP that uses the Dropbox API.","archived":false,"fork":false,"pushed_at":"2016-05-02T14:35:33.000Z","size":294,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-01T01:52:30.963Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://scottrobertson.me","language":"PHP","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/scottrobertson.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}},"created_at":"2013-08-04T09:52:48.000Z","updated_at":"2021-04-28T07:28:04.000Z","dependencies_parsed_at":"2022-09-10T12:50:16.309Z","dependency_job_id":null,"html_url":"https://github.com/scottrobertson/backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scottrobertson/backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottrobertson%2Fbackup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottrobertson%2Fbackup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottrobertson%2Fbackup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottrobertson%2Fbackup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottrobertson","download_url":"https://codeload.github.com/scottrobertson/backup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottrobertson%2Fbackup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273227970,"owners_count":25067691,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"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":[],"created_at":"2024-10-11T02:29:55.675Z","updated_at":"2025-09-02T04:05:37.232Z","avatar_url":"https://github.com/scottrobertson.png","language":"PHP","readme":"Dropbox Backup\n======\n\nA backup system written in PHP that uses the Dropbox API.\n\nI recommend that you set MySQL and MongoDB up on an hourly cron, which will overwrite the file every hour (the files are stored in a 'ymd' folder), however Dropbox will keep all 24 revisions for that day for 30 days. \n\nFolders should be setup on a weekly cron and will use 'ym' so you have 1 backup, and 4 versions per month.\n\n**Still in very early development, test and test again before use.**\n\nYou can currently backup:\n - MySQL\n - MongoDB\n - Folders/Files\n\n## Usage\n```bash\n bin/console dropbox:auth # Setup the Dropbox auth tokens\n```\n\n```bash\n bin/console export:all # Uses \"export\" from config.json (See below)\n```\n\nor\n\n```bash\n bin/console export:mysql # Export MySQL\n bin/console export:mongo # Export MongoDB\n bin/console export:folders # Export Folders (set in config.json)\n```\n\n## Example config.json\n```json\n{\n    \"dropbox\": {\n        \"key\": \"\",\n        \"secret\": \"\"\n    },\n    \"host\": \"example.com\",\n    \"mongodb\": {\n        \"host\": \"localhost\",\n        \"port\": 232323,\n        \"password\": \"password\",\n        \"username\": \"admin\",\n        \"database\": \"test\"\n    },\n    \"mysql\": {\n        \"host\": \"localhost\",\n        \"password\": \"password\",\n        \"username\": \"root\"\n    },\n    \"export\" : [\n        \"mongodb\",\n        \"mysql\",\n        \"folders\"\n    ],\n    \"folders\" : [\n        \"/var/www\"\n    ],\n    \"exclude_folders\" : [\n        \"/var/www/site.com\"\n    ]\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottrobertson%2Fbackup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottrobertson%2Fbackup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottrobertson%2Fbackup/lists"}