{"id":16994680,"url":"https://github.com/znerol/python-dbdump","last_synced_at":"2026-04-11T21:39:44.655Z","repository":{"id":136256085,"uuid":"445922914","full_name":"znerol/python-dbdump","owner":"znerol","description":"A python script simplifying partial backups of MySQL databases","archived":false,"fork":false,"pushed_at":"2022-01-08T20:38:24.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T05:43:36.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/znerol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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}},"created_at":"2022-01-08T20:37:37.000Z","updated_at":"2022-01-08T20:38:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"22c43ec1-7b32-43fe-b88f-b020395adb30","html_url":"https://github.com/znerol/python-dbdump","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/znerol/python-dbdump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fpython-dbdump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fpython-dbdump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fpython-dbdump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fpython-dbdump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/znerol","download_url":"https://codeload.github.com/znerol/python-dbdump/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fpython-dbdump/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263493409,"owners_count":23475197,"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-10-14T03:46:15.293Z","updated_at":"2026-04-11T21:39:39.634Z","avatar_url":"https://github.com/znerol.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"dbdump.py\n=========\n\nA python script simplifying partial backups of MySQL databases.\n\nIntroduction\n------------\nWith web applications becoming more and more complex also the number of tables\nin their database is increasing. Beside content and configuration, many of the\ncurrent web applications also store temporary or aggregated data into the\ndatabase. In order to save resources it may be desirable to exclude or separate\nderived data. This can lead to dramatically reduced file sizes and faster\nrestores.\n\nWith dbdump.py the database schema and the data is dumped separately. While the\nschema always includes all tables, the data-dump can be configured to include /\nexclude certain tables.\n\nAlso part of the collection is a shell script, which can be run as CGI script\nwhen cron is not available or limited to http requests at the hosting machine.\n\nUsage\n-----\n\n```\nusage: ./dbdump.py [-h] [-n NAME] [-i INCLUDES] [-e EXCLUDES] [-c] [-p] [-k KEEP] [-d DEFAULTS_FILE] [-v]\n                   dumpdir database\n\npositional arguments:\n  dumpdir               The destination directory for database dumps\n  database              The database to dump\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -n NAME, --name NAME  Base name of dumpfile. Defaults to name of database.\n  -i INCLUDES, --include INCLUDES\n                        Add table include pattern. May be specified multiple times.\n  -e EXCLUDES, --exclude EXCLUDES\n                        Add table exclude pattern. May be specified multiple times.\n  -c, --compress        Compress backups using gzip\n  -p, --prune           Prune old backups after dumping the database\n  -k KEEP, --keep KEEP  Keep this number of backups in prune phase\n  -d DEFAULTS_FILE, --defaults-file DEFAULTS_FILE\n                        Path to MySQL defaults file\n  -v, --verbose         Turn on verbose logging\n```\n\nLicense\n-------\n\n* [GPL-3 or later](https://www.gnu.org/licenses/gpl-3.0.en.html)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznerol%2Fpython-dbdump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fznerol%2Fpython-dbdump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznerol%2Fpython-dbdump/lists"}