{"id":29671347,"url":"https://github.com/linkorb/snapshot","last_synced_at":"2025-07-22T20:07:39.430Z","repository":{"id":37548524,"uuid":"69808022","full_name":"linkorb/snapshot","owner":"linkorb","description":"snapshots for your mysql databases","archived":false,"fork":false,"pushed_at":"2023-12-21T23:18:19.000Z","size":59,"stargazers_count":3,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-16T20:19:15.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/linkorb.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}},"created_at":"2016-10-02T16:27:41.000Z","updated_at":"2019-12-17T11:58:51.000Z","dependencies_parsed_at":"2022-08-26T15:30:49.815Z","dependency_job_id":null,"html_url":"https://github.com/linkorb/snapshot","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/linkorb/snapshot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsnapshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsnapshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsnapshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsnapshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkorb","download_url":"https://codeload.github.com/linkorb/snapshot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsnapshot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266563915,"owners_count":23948689,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":"2025-07-22T20:07:38.522Z","updated_at":"2025-07-22T20:07:39.368Z","avatar_url":"https://github.com/linkorb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Snapshot\n========\n\nMysql snapshot utility\n\n\n## Features\n\n* Backup single database, or all databases on a server, to Amazon S3\n* Compressesion\n* Encryption (GPG)\n* Supports multiple servers in single config\n* Supports multiple storage backends in single config\n* Simple database restore\n* Lists remote snapshots with wildcards\n\n## Configuration\n\nSnapshot is configured using a `snapshot.yml` file.\n\nThe file will be automatically loaded from the current working directory, or from `/etc/snapshot.yml`.\n\nYou can also pass `--config` or `-c` to specify the exact config filename you wish to use.\n\nTo get you started, simply run:\n\n    cp snapshot.yml.dist snapshot.yml\n\nand edit `snapshot.yml` to fit your environment\n\n### Example snapshot.yml\n\nIn the following config you'll find 2 configured database servers (`server-a` and `server-b`), and one storage backend (`store1`):\n\n```yml\nworkdir: /snapshot\n\nservers:\n  \n  server-a:\n    username: root\n    password: super_secret_password\n    address: 10.0.0.100\n    port: 3306\n    \n  server-b:\n    username: root\n    password: mega_secret_password\n    address: 10.0.0.101\n    port: 3306\n    \n    \nstorage:\n  store1:\n    type: s3\n    region: eu-west-1\n    access_key: HELLO\n    secret_key: SHHHHHHH\n    bucket: my_bucket_name\n    prefix: \"snapshot/\"\n    gpg_password: s3cr3t\n```\n\n## Usage examples:\n\n### Backing up a whole server:\n\nThe following command will backup all databases on `server-a` to `store1`.\n\n    bin/snapshot server:backup server-a store1\n\n### Backing up a single database:\n\nThe following command will backup database `my_db` on `server-a` to `store1`.\n\n    bin/snapshot database:backup server-a my_db store1\n\n### List remote snapshots\n\nThe following command will list all snapshots in `store1`.\n\n    bin/snapshot snapshot:list store1\n\nThe following command will list all snapshots in `store1` matching a filter.\n\n    bin/snapshot snapshot:list store1 snapshot-a/*/my_db\n\n## Restoring backups\n\nThe following command will restore a backup of snapshot `server-a/20160101/my_db` from `store1` onto `server-b`:\n\n    bin/snapshot snapshot:restore store1 server-b server-a/20160101/my_db\n\n## License\n\nMIT. Please refer to the [license file](LICENSE.md) for details.\n\n## Brought to you by the LinkORB Engineering team\n\n\u003cimg src=\"http://www.linkorb.com/d/meta/tier1/images/linkorbengineering-logo.png\" width=\"200px\" /\u003e\u003cbr /\u003e\nCheck out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).\n\nBtw, we're hiring!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fsnapshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkorb%2Fsnapshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fsnapshot/lists"}