{"id":18610154,"url":"https://github.com/creativecommons/sre-wp-pull","last_synced_at":"2026-01-23T17:36:20.377Z","repository":{"id":145277463,"uuid":"192797615","full_name":"creativecommons/sre-wp-pull","owner":"creativecommons","description":"Creative Commons Site Reliability Engineering WordPress Data Pull","archived":false,"fork":false,"pushed_at":"2025-04-21T11:33:29.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-21T12:38:20.589Z","etag":null,"topics":["bash","wordpress-sync"],"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/creativecommons.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["creativecommons"],"custom":["https://creativecommons.org/donate"]}},"created_at":"2019-06-19T20:08:40.000Z","updated_at":"2025-04-21T11:33:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"40395d39-0d7a-4fdf-bc99-450b522cabdc","html_url":"https://github.com/creativecommons/sre-wp-pull","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/creativecommons/sre-wp-pull","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativecommons%2Fsre-wp-pull","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativecommons%2Fsre-wp-pull/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativecommons%2Fsre-wp-pull/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativecommons%2Fsre-wp-pull/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/creativecommons","download_url":"https://codeload.github.com/creativecommons/sre-wp-pull/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativecommons%2Fsre-wp-pull/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28696807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","wordpress-sync"],"created_at":"2024-11-07T03:08:44.920Z","updated_at":"2026-01-23T17:36:20.370Z","avatar_url":"https://github.com/creativecommons.png","language":"Shell","readme":"# sre-wp-pull\n\nCreative Commons Site Reliability Engineering WordPress Data Pull\n\n\u003e :warning: **Destroys and replaces destination data**\n\n\n## Code of Conduct\n\n[`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md):\n\u003e The Creative Commons team is committed to fostering a welcoming community.\n\u003e This project and all other Creative Commons open source projects are governed\n\u003e by our [Code of Conduct][code_of_conduct]. Please report unacceptable\n\u003e behavior to [conduct@creativecommons.org](mailto:conduct@creativecommons.org)\n\u003e per our [reporting guidelines][reporting_guide].\n\n[code_of_conduct]:https://opensource.creativecommons.org/community/code-of-conduct/\n[reporting_guide]:https://opensource.creativecommons.org/community/code-of-conduct/enforcement/\n\n\n## Contributing\n\nSee [`CONTRIBUTING.md`](CONTRIBUTING.md).\n\n\n## Assumptions\n\n1. `DEST_HOST`:\n   1. Web hosting and WordPress are configured independently (ex. by\n      SaltStack)\n      - `wp-config.php` is already setup\n      - user has appopriate permissions (ex. member of `www-data`)\n      - [WP-CLI][wp-cli] is already installed\n   2. You may need to configure your `.ssh/config`. For example,\n      `chapters_stage` requires the following entry:\n        ```\n        Host 10.22.10.14\n            ProxyJump 10.22.10.10\n        ```\n2. `SOURCE_HOST`:\n   1. WordPress source data was created using\n      [/states/wordpress/files/backup_wordpress.sh][backup] found in the\n      [creativecommons/sre-salt-prime][salt-prime] repository.\n\n[wp-cli]: https://wp-cli.org/\n[salt-prime]: https://github.com/creativecommons/sre-salt-prime\n[backup]: https://github.com/creativecommons/sre-salt-prime/blob/master/states/wordpress/files/backup_wordpress.sh\n\n\n## Use\n\n1. `SOURCE_HOST`: *(optional)*\n   - run [`backup_wordpress.sh`][backup]\n2. Local/laptop:\n   1. Clone this repository\n   2. Prepare configuration file\n      1. Make a copy of one of the appropriate\n         [`config_examples/`](config_examples/)\n      2. Replace `FILEPATH` and `USERNAME` with your information\n      3. Ensure `SOURCE_DB_FILE` and `SOURCE_UPLOADS_FILE` are valid files on\n         the `SOURCE_HOST` (ex. by completing step 1, above)\n   3. Execute script with config file as only argument. For example:\n        ```shell\n        ./wp-pull.sh chapters__stage\n        ```\n\n\n# Alternatives\n\n(Only documenting CLI utitilities here. There are also many WordPress plugins\ndevoted to migrating, mirroring, and syncing.)\n\n- [jplew/SyncDB][syncdb]: Bash script meant to take the tedium out of deploying\n  and updating database-driven (eg Wordpress) websites. It rapidly synchronizes\n  local and remote versions of a MySQL database, performs the necessary search\n  and replace queries, then synchronizes all your uploads/binaries.\n\n[syncdb]: https://github.com/jplew/SyncDB\n\n\n## License\n\n- [`LICENSE`](LICENSE) (Expat/[MIT][mit] License)\n\n[mit]: http://www.opensource.org/licenses/MIT \"The MIT License | Open Source Initiative\"\n","funding_links":["https://github.com/sponsors/creativecommons","https://creativecommons.org/donate"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreativecommons%2Fsre-wp-pull","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreativecommons%2Fsre-wp-pull","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreativecommons%2Fsre-wp-pull/lists"}