{"id":27854851,"url":"https://github.com/genaker/magento-dump","last_synced_at":"2026-02-23T23:36:08.708Z","repository":{"id":278712653,"uuid":"936523416","full_name":"Genaker/magento-dump","owner":"Genaker","description":"Python Magento Dump Script","archived":false,"fork":false,"pushed_at":"2025-02-25T02:15:03.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T14:09:24.776Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Genaker.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}},"created_at":"2025-02-21T08:29:40.000Z","updated_at":"2025-02-25T02:15:06.000Z","dependencies_parsed_at":"2025-02-21T09:37:43.904Z","dependency_job_id":"736382ca-fe78-4b60-a377-db3df35a2e97","html_url":"https://github.com/Genaker/magento-dump","commit_stats":null,"previous_names":["genaker/magento-dump"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2Fmagento-dump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2Fmagento-dump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2Fmagento-dump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2Fmagento-dump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Genaker","download_url":"https://codeload.github.com/Genaker/magento-dump/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251395877,"owners_count":21582944,"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":"2025-05-04T09:59:06.597Z","updated_at":"2026-02-23T23:36:03.671Z","avatar_url":"https://github.com/Genaker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magento Database Management Tool\nA powerful Python script to list Magento database tables and perform MySQL dumps with filtering and compression.\n\n# Features\n✅ Show Table Sizes: Lists only tables larger than 1MB, sorted by size.\u003c/br\u003e\n✅ Dump Full Database: Dumps all tables, ignoring predefined ones.\u003c/br\u003e\n✅ Interactive CLI: Select options using an interactive menu.\u003c/br\u003e\n✅ Progress Tracking: Shows real-time progress during MySQL dump.\u003c/br\u003e\n✅ Config Auto-Detection: Reads Magento env.php for database settings.\u003c/br\u003e\n✅ Compression: Dumps are gzip compressed for storage efficiency.\u003c/br\u003e\n\n# Installation\n1. Clone the Repository\n\n```\ngit clone https://github.com/yourusername/magento-db-tool.git\ncd magento-db-tool\n```\n2. Install Dependencies\n\n```\npip install tqdm simple-term-menu\n```\n🔹 Run Interactive CLI\n```\npython3 magento_db_tool.py\n```\n🔹 Show Tables Bigger Than 1MB\n```\npython3 magento_db_tool.py show-tables\n```\n🔹 Dump Entire Magento Database\n```\npython3 magento_db_tool.py db-dump\n```\n📝 Commands Overview\nCommand\tDescription\n- show-tables\tList tables larger than 1MB with row count \u0026 size\n- db-dump\tDumps all tables with gzip compression\n- exit\tClose the tool\n📦 Example Output\nListing Tables\n\n🔍 Fetching table details (only tables \u003e 1MB)...\n```\nTable Name                            Rows           Size (MB)  \n=================================================================\nsales_order                           50000         15.6  \ncatalog_product_entity                120000        12.3  \ncustomer_entity                        30000         8.4  \n```\n✅ Showing 3 tables larger than 1MB.\nDumping Database\n```\n🚀 Starting database dump...\n📂 Dumping table: sales_order ...\n📂 Dumping table: catalog_product_entity ...\n📂 Dumping table: customer_entity ...\n\n✅ Database dump successful: magento_luma_dump_20240219.sql.gz\n```\n🔧 Configuration\nThis tool automatically extracts your Magento database settings from app/etc/env.php. No manual setup required!\n\nChange ignored tables in ignore_tables inside the script.\n⏱ Automate with CRON\nTo schedule daily database backups at midnight, add this to crontab -e:\n\n```\n0 0 * * * /usr/bin/python3 /path/to/magento_db_tool.py db-dump\n```\n\n## Deploy to PyPI, follow these steps:\n\n1️. Install Twine (if not installed)\n```\npip install twine\n```\n\n2️. Build the Package\nInside your project root (magento-dump/):\n\n```\npip install --upgrade setuptools\npython setup.py sdist bdist_wheel\n```\n\n3️. Upload to PyPI\n```\ntwine upload dist/*\n```\nor\n```\nrm -rf dist/ \u0026\u0026 python setup.py sdist bdist_wheel \u0026\u0026 twine upload dist/*\n```\nor new wey:\n```\npip install build\nrm -rf dist/*\npython -m build\npip install twine\ntwine upload dist/*\n```\nThis will ask for your PyPI credentials. Once uploaded, you can install your package with:\n\n```\npip install magento-dump\n```\n\n📜 License\nMIT License. Free to use and modify.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenaker%2Fmagento-dump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenaker%2Fmagento-dump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenaker%2Fmagento-dump/lists"}