{"id":30612736,"url":"https://github.com/wearejh/stripped-db-provider","last_synced_at":"2026-03-10T12:02:35.236Z","repository":{"id":42451678,"uuid":"206750441","full_name":"WeareJH/stripped-db-provider","owner":"WeareJH","description":"An M2 module that provides stripped databases on a scheduled basis to a storage location of choice","archived":false,"fork":false,"pushed_at":"2025-10-03T14:12:40.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-01-21T00:51:42.142Z","etag":null,"topics":["db-dump","m2","m2-module"],"latest_commit_sha":null,"homepage":"","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/WeareJH.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-09-06T08:35:04.000Z","updated_at":"2025-10-03T14:12:06.000Z","dependencies_parsed_at":"2025-06-03T04:34:43.782Z","dependency_job_id":null,"html_url":"https://github.com/WeareJH/stripped-db-provider","commit_stats":{"total_commits":28,"total_committers":5,"mean_commits":5.6,"dds":0.2142857142857143,"last_synced_commit":"b87290aae9bab87f99601ca91fea1dc97d67bf37"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/WeareJH/stripped-db-provider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeareJH%2Fstripped-db-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeareJH%2Fstripped-db-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeareJH%2Fstripped-db-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeareJH%2Fstripped-db-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WeareJH","download_url":"https://codeload.github.com/WeareJH/stripped-db-provider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WeareJH%2Fstripped-db-provider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30332857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"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":["db-dump","m2","m2-module"],"created_at":"2025-08-30T05:35:51.359Z","updated_at":"2026-03-10T12:02:35.198Z","avatar_url":"https://github.com/WeareJH.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jh Stripped Db Provider\n\nThis module can be configured to automatically send stripped databases periodically into an Amazon S3 Bucket in the cloud.\n\n## Installation\n\nAdd the following repositories to the `repositories` section of your `composer.json`\n\n```\n{\"type\": \"vcs\", \"url\": \"git@github.com:WeareJH/stripped-db-provider.git\"},\n```\n\nThen install like any regular composer package\n```bash\ncomposer require wearejh/stripped-db-provider\n```\n\n## Configuration\n\nThere are two areas of configuration. The first is project specific config, which is set in **config.php** and gets commited to the repository. The second is environment specific configuration which is added to the **env.php** file directly on the server.\n\n### Project Specific Configuration\n\nAll databases are stripped by default but you can define project specific tables whose data you wish to not be included in the dump by adding the following to your **config.php** file:\n\n```\n'system' =\u003e [\n        'default' =\u003e [\n            'stripped_db_provider' =\u003e [\n                'dump' =\u003e [\n                    'project_ignore_tables' =\u003e ['example_table_a', 'example_table_b']\n                ]\n            ]\n        ]\n    ]\n```\n\nWhere `project_ignore_tables` is a list of project specfic tables.\n\n### Environment Specific Configuration\n\nOnce Installed and deployed to production, you will want to configure it so that it automatically sends stripped DBs to the S3 Bucket.\nYou would ned to add access_key_id \u0026 secret_access_key as encrypted value. So you can mention these values in admin which will auto encrypt these values.\nEdit the **env.php** file manually and set the following config (values below are examples):\n```\n'system' =\u003e [\n        'default' =\u003e [\n            'stripped_db_provider' =\u003e [\n                'general' =\u003e [\n                    'enabled' =\u003e '1',\n                    'project_name' =\u003e 'example-project',\n                    'cron_expr' =\u003e '0 4 * * 0'\n                ],\n                'storage' =\u003e [\n                    'bucket_name' =\u003e 'example-bucket-name',\n                    'region' =\u003e 'example-bucket-region',\n                    'access_key_id' =\u003e 'example-bucket-access-key',\n                    'secret_access_key' =\u003e 'example-bucket-secret-access-key'\n                ]\n            ]\n        ]\n    ]\n```\n\nYou can add access_key_id, secret_access_key, bucket_name, region from admin also by logging in admin. Go to Store-\u003eConfiguration-\u003eAdvanced-\u003eStripped DB Provider\n\nValues are described in the following table:\n\n| config                | value                                                               |\n|-----------------------|---------------------------------------------------------------------|\n| enabled               | One of {0,1}                                                        |\n| project-name          | String. Unique name for the project (used to name the db dump)      |\n| cron_expr             | A valid cron expression. Eg. \"0 0/5 * * *\"                          |\n| bucket_name           | String. AWS S3 Bucket name                                          |\n| region                | String. AWS S3 Bucket region                                        |\n| access_key_id         | String. AWS S3 Bucket access key id                                 |\n| secret_access_key     | String. AWS S3 Bucket secret access key                             |\n\nThe Amazon S3 Bucket Details should be in LastPass. Ask your fellow developers if you can't find it or need help setting up.\n\nAfter you have edited the env.php file, run the following command immediately :\n\n```\nbin/magento app:config:import\n``` \n\n## Run upload manually\n\nYou can also manually trigger the stripped database upload from the command line by running the following command : \n\n```\nbin/magento wearejh:stripped-db-provider:upload-to-remote \n```\n\nTo do a full DB dump\n\n```\nbin/magento wearejh:stripped-db-provider:upload-to-remote --full\n```\n\n## Import a remote dump locally\n\nYou can use the module to import a dump from S3 directly to your local. It will back up your local admin accounts and \nreimport them\n\n```\nbin/magento wearejh:stripped-db-provider:import-from-remote PROJECT NAME \n```\n\n#### To skip admin accounts backup\n\n```\nbin/magento wearejh:stripped-db-provider:import-from-remote PROJECT NAME --no-admin-backup=1 \n```\n\n#### Config backup\n\nThe `config-backup` option accepts 3 values:\n* *skip* - skips the backup of local config and imports everything from the remote\n* *merge* - backs up only the paths configured under `stripped_db_provider/dump/config_paths_keep` (accepts MySQL wildcards `%`),\n  imports everything from the remote and merges the backed up config with the remote config\n* *preserve-local* - backs up the whole `core_config_data` and restores it after the DB import from remote\n\n```\nbin/magento wearejh:stripped-db-provider:import-from-remote PROJECT NAME --config-backup=merge\n```\n\n## Issues / Feature Request\n\nPlease open github issues for any issues you encounter or feature requests you want to see. PRs are of course welcomed.\n\n## Troubleshooting\n\nIf any project has 0.3.3 version installed of this module, getting a dependency error related to module: ifsnop/mysqldump-php ^2.12 while upgrading module to latest version then remove the below line from composer.json file of project root folder:\n        {\n           \"type\": \"vcs\",\n           \"url\": \"git@github.com:maciejslawik/mysqldump-php.git\"\n         }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwearejh%2Fstripped-db-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwearejh%2Fstripped-db-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwearejh%2Fstripped-db-provider/lists"}