{"id":19635598,"url":"https://github.com/2createstudio/shuttle-export","last_synced_at":"2025-04-03T02:09:34.522Z","repository":{"id":23289164,"uuid":"26648160","full_name":"2createStudio/shuttle-export","owner":"2createStudio","description":"Pure PHP MySQL dumping utility","archived":false,"fork":false,"pushed_at":"2021-02-26T06:21:04.000Z","size":42,"stargazers_count":201,"open_issues_count":10,"forks_count":84,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-24T08:09:19.088Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2createStudio.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":"2014-11-14T16:53:35.000Z","updated_at":"2024-10-02T05:51:30.000Z","dependencies_parsed_at":"2022-08-05T22:00:19.342Z","dependency_job_id":null,"html_url":"https://github.com/2createStudio/shuttle-export","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2createStudio%2Fshuttle-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2createStudio%2Fshuttle-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2createStudio%2Fshuttle-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2createStudio%2Fshuttle-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2createStudio","download_url":"https://codeload.github.com/2createStudio/shuttle-export/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246922247,"owners_count":20855345,"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-11T12:25:59.495Z","updated_at":"2025-04-03T02:09:34.502Z","avatar_url":"https://github.com/2createStudio.png","language":"PHP","readme":"PHP based MySQL dump library\n=========\n\nThe library provides easy way to create MySQL dumps files. It will try to create dump through:\n\n 0. `mysqldump` shell utility\n 1. native PHP code\n\nFor native dumps(on hosts without shell access), it works with `mysqli` php extension by default, and fallbacks to old-fashioned `mysql` whenever `mysqli` isn't available.\n\nThe aim of the library is to work on as many web-hosts as possible: it requires PHP 5.2 and requires just one `mysql` or `mysqli` libraries to be available. \n\nFeatures:\n\n * support for plain text and gzip output(whenever the dump file has .gz extension, a gzip archive will be produced)\n * support for including just particular tables from the database, excluding tables, and dumping just tables with particular prefix\n\nToDo:\n \n * add support for views and triggers\n * try how things work with databases with foreign keys constraints\n\n## Examples\n\nDump all tables in `world` database:\n\n    $world_dumper = Shuttle_Dumper::create(array(\n        'host' =\u003e '',\n        'username' =\u003e 'root',\n        'password' =\u003e '',\n        'db_name' =\u003e 'world',\n    ));\n    // dump the database to plain text file\n    $world_dumper-\u003edump('world.sql');\n\n    // send the output to gziped file:\n    $world_dumper-\u003edump('world.sql.gz');\n    \nDump only the tables with `wp_` prefix:\n\n    $wp_dumper = Shuttle_Dumper::create(array(\n        'host' =\u003e '',\n        'username' =\u003e 'root',\n        'password' =\u003e '',\n        'db_name' =\u003e 'wordpress',\n    ));\n    $wp_dumper-\u003edump('wordpress.sql', 'wp_');\n\nDump only `country` and `city` tables:\n    \n    $countries_dumper = Shuttle_Dumper::create(array(\n        'host' =\u003e '',\n        'username' =\u003e 'root',\n        'password' =\u003e '',\n        'db_name' =\u003e 'world',\n        'include_tables' =\u003e array('country', 'city'),\n    ));\n    $countries_dumper-\u003edump('world.sql.gz');\n\nDump all tables except for `city`:\n\n    $world_dumper = Shuttle_Dumper::create(array(\n        'host' =\u003e '',\n        'username' =\u003e 'root',\n        'password' =\u003e '',\n        'db_name' =\u003e 'world',\n        'exclude_tables' =\u003e array('city'),\n    ));\n    $world_dumper-\u003edump('world-no-cities.sql.gz');\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2createstudio%2Fshuttle-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2createstudio%2Fshuttle-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2createstudio%2Fshuttle-export/lists"}