{"id":20742691,"url":"https://github.com/itinerisltd/trellis-backup-during-deploy","last_synced_at":"2025-04-24T05:16:47.682Z","repository":{"id":31610807,"uuid":"128413716","full_name":"ItinerisLtd/trellis-backup-during-deploy","owner":"ItinerisLtd","description":"Backup WordPress database during Trellis deploys","archived":false,"fork":false,"pushed_at":"2022-06-07T11:43:05.000Z","size":23,"stargazers_count":26,"open_issues_count":4,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-24T05:16:30.702Z","etag":null,"topics":["ansible-galaxy","backup","database","trellis","wordpress"],"latest_commit_sha":null,"homepage":"","language":null,"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/ItinerisLtd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-04-06T15:36:50.000Z","updated_at":"2023-08-16T05:55:41.000Z","dependencies_parsed_at":"2022-07-23T10:46:38.257Z","dependency_job_id":null,"html_url":"https://github.com/ItinerisLtd/trellis-backup-during-deploy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItinerisLtd%2Ftrellis-backup-during-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItinerisLtd%2Ftrellis-backup-during-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItinerisLtd%2Ftrellis-backup-during-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItinerisLtd%2Ftrellis-backup-during-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItinerisLtd","download_url":"https://codeload.github.com/ItinerisLtd/trellis-backup-during-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250566523,"owners_count":21451234,"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":["ansible-galaxy","backup","database","trellis","wordpress"],"created_at":"2024-11-17T07:07:04.289Z","updated_at":"2025-04-24T05:16:47.658Z","avatar_url":"https://github.com/ItinerisLtd.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# trellis-backup-during-deploy\n\n[![GitHub tag](https://img.shields.io/github/tag/ItinerisLtd/trellis-backup-during-deploy.svg)](https://github.com/ItinerisLtd/trellis-backup-during-deploy/tags)\n[![license](https://img.shields.io/github/license/ItinerisLtd/trellis-backup-during-deploy.svg)](https://github.com/ItinerisLtd/trellis-backup-during-deploy/blob/master/LICENSE)\n\nBackup WordPress database during [Trellis](https://github.com/roots/trellis) deploys.\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Author Information](#author-information)\n- [Feedback](#feedback)\n- [Change log](#change-log)\n- [License](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Requirements\n\n- Trellis [9dfddfd](https://github.com/roots/trellis/commit/9dfddfd0d5f7d10886d2f434c02d3bd23edb8684) or later\n- Ansible v2.4 or later\n\n\n## Installation\n\nAdd this role to `galaxy.yml`:\n\n```yaml\n# galaxy.yml\n- name: trellis-backup-during-deploy\n  src: https://github.com/ItinerisLtd/trellis-backup-during-deploy\n  version: 0.1.2 # Check for latest version!\n```\n\nAdd this role to the [`deploy_initialize_after` hook](https://roots.io/trellis/docs/deploys/#hooks):\n```yaml\n# group_vars/all/deploy-hooks.yml\n# Learn more on https://roots.io/trellis/docs/deploys/#hooks\ndeploy_initialize_after:\n  - \"{{ playbook_dir }}/vendor/roles/trellis-backup-during-deploy/tasks/main.yml\"\n```\n\n## Usage\n\n[Deploy](https://roots.io/trellis/docs/deploys/#example) as usual. No special action needed.\n\n[`$ wp db export`](https://developer.wordpress.org/cli/commands/db/export/) is invoked during deploy. You can find the database dump in `/srv/www/example.com/releases/2018XXXXXXXXXX/example_com_env-2018-XX-XX-XXXXXXX.sql` – be sure to check the pre-latest `release`-folder (e.g. the release before deploy) since `current` serves as alias to the latest release.\n\n## Author Information\n\n[trellis-backup-during-deploy](https://github.com/ItinerisLtd/trellis-backup-during-deploy) is a [Itineris Limited](https://www.itineris.co.uk/) project created by [Tang Rufus](https://typist.tech).\n\nSpecial thanks to [the Roots team](https://roots.io/about/) whose [Trellis](https://github.com/roots/trellis) make this project possible.\n\nFull list of contributors can be found [here](https://github.com/ItinerisLtd/trellis-backup-during-deploy/graphs/contributors).\n\n## Feedback\n\n**Please provide feedback!** We want to make this library useful in as many projects as possible.\nPlease submit an [issue](https://github.com/ItinerisLtd/trellis-backup-during-deploy/issues/new) and point out what you do and don't like, or fork the project and make suggestions.\n**No issue is too small.**\n\n## Change log\n\nPlease see [CHANGELOG](./CHANGELOG.md) for more information on what has changed recently.\n\n## License\n\n[trellis-backup-during-deploy](https://github.com/ItinerisLtd/trellis-backup-during-deploy) is released under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinerisltd%2Ftrellis-backup-during-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitinerisltd%2Ftrellis-backup-during-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinerisltd%2Ftrellis-backup-during-deploy/lists"}