{"id":18627116,"url":"https://github.com/markshust/syncdb","last_synced_at":"2025-07-09T15:35:44.386Z","repository":{"id":26068747,"uuid":"29512456","full_name":"markshust/syncdb","owner":"markshust","description":"sycndb is a shell script that takes a mysqldump of a remote database, zips it up, copies it to your localhost, unzips it and loads it into a local database.","archived":false,"fork":false,"pushed_at":"2015-01-20T15:57:47.000Z","size":142,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-17T08:48:02.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/markshust.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":"2015-01-20T04:54:11.000Z","updated_at":"2015-01-22T17:00:25.000Z","dependencies_parsed_at":"2022-08-25T17:10:08.281Z","dependency_job_id":null,"html_url":"https://github.com/markshust/syncdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markshust/syncdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fsyncdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fsyncdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fsyncdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fsyncdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markshust","download_url":"https://codeload.github.com/markshust/syncdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fsyncdb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264486287,"owners_count":23616011,"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":[],"created_at":"2024-11-07T04:40:33.636Z","updated_at":"2025-07-09T15:35:44.313Z","avatar_url":"https://github.com/markshust.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"syncdb\n======\n\nsyncdb is a shell script that takes a mysqldump of a remote database, zips it up, copies it to your localhost, unzips it and loads it into a local database. If you run Magento, it'll also update the `core_config_data` table to your local URL.\n\nUsage\n-----\n\nSet the proper permissions on this file, update the config variables and run:\n\n```\n./syncdb.sh\n```\n\nExample of output when running script:\n\n```\n$ ./syncdb.sh \nhost\nCreating zipped backup of remote database\nTransferring backup from remote to local\nhost\ndatabase.tmp.sql.tar.gz                               100%  128KB 128.0KB/s   00:01    \nhost\nUnzipping mysql backup\nReloading local database (may take few moments)\nUpdating config\nComplete!\n```\n\nThis script assumes that you have SSH Keys setup for connecting to your remote host. If you do not, you'll need to modify the script as necessary.\n\nNOTE: If you are not running a Magento store, you don't need to define `LOCAL_BASE_URL` and can remove lines 11, 30, \u0026 31.\n\nOptions\n-------\n\n- `REMOTE_HOST`: The SSH info for your remote host. Ex: `user@host`\n- `REMOTE_MYSQL_HOST`: MySQL server hostname for your remote host.\n- `REMOTE_MYSQL_DB`: MySQL database name for your remote host.\n- `REMOTE_MYSQL_USER`: MySQL username for your remote host.\n- `REMOTE_MYSQL_PASS`: MySQL password for your remote host.\n- `LOCAL_MYSQL_HOST`: MySQL server hostname for your local host.\n- `LOCAL_MYSQL_DB`: MySQL database name for your local host.\n- `LOCAL_MYSQL_USER`: MySQL username for your local host.\n- `LOCAL_MYSQL_PASS`: MySQL password for your local host.\n- `LOCAL_BASE_URL`: Local URL for your Magento instance (ensure trailing slash). Ex. `http://domain.local/`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkshust%2Fsyncdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkshust%2Fsyncdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkshust%2Fsyncdb/lists"}