{"id":21433205,"url":"https://github.com/cdwv/cronos-database-dumper","last_synced_at":"2025-07-13T17:09:50.845Z","repository":{"id":62500447,"uuid":"82662111","full_name":"cdwv/cronos-database-dumper","owner":"cdwv","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-22T07:34:23.000Z","size":21,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-30T09:16:24.003Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdwv.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":"2017-02-21T09:38:10.000Z","updated_at":"2021-05-15T23:15:39.000Z","dependencies_parsed_at":"2022-11-02T09:46:15.981Z","dependency_job_id":null,"html_url":"https://github.com/cdwv/cronos-database-dumper","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cdwv/cronos-database-dumper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdwv%2Fcronos-database-dumper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdwv%2Fcronos-database-dumper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdwv%2Fcronos-database-dumper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdwv%2Fcronos-database-dumper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdwv","download_url":"https://codeload.github.com/cdwv/cronos-database-dumper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdwv%2Fcronos-database-dumper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265175567,"owners_count":23722661,"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-22T23:26:41.556Z","updated_at":"2025-07-13T17:09:50.828Z","avatar_url":"https://github.com/cdwv.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Description\n------------\nThis bundle populates your crontab with tasks that will backup your databases using mysqldump.\n\nRequirements\n------------\nBackups are created using the `mysqldump` command which means you need to have at least \n`mysql-client` package installed on your server. \n\n```\nsudo apt-get update\nsudo apt-get install mysql-client\n```\n\nInstallation\n------------\n\nrun:\n```\ncomposer require cdwv/mysql-dumper-command-bundle\ncomposer require cdwv/cronos-database-dumper\n```\n\nadd bundle to AppKernel:\n```\nnew CodeWave\\CronosDatabaseDumperBundle\\CodeWaveCronosDatabaseDumperBundle(),\nnew CodeWave\\MysqlDumperCommandBundle\\CodeWaveMysqlDumperCommandBundle()\n```\n\nRun:\n------------\n\n```\n    cdwv:cronos-database-dumper:update\n```\n\nConfiguration:\n------------\nin config.yml, defaults values:\n```\n    code_wave_cronos_database_dumper:\n            minute: 4\n            hour: 0\n            dumps_location: .\n            key: app_name\n            php_path: /usr/bin/php\n            env: prod \n            clean_older_than: 14 #days\n```\n\nCrontab:\n------------\n\nThe above configuration will result in the following entry in your crontab:\n```text\n# KEY app_name\n0    4    *    *    *    /usr/bin/php __PATH_TO_YOUR_PROJECT__/app/console cdwv:database:dump --env=prod --path=.\n\n0    4    *    *    *    find * -mtime +14 -exec rm {} \\;\n# END\n```\n\nThis task will dump **all** of the databases from within your symfony project if there are connections defined for them.\n\nBear in mind that `__PATH_TO_YOUR_PROJECT__` will contain resolved symlinks which means that you might need to call\n`cdwv:cronos-database-dumper:update` each time the path to new version of the app will change \n(e.g. if you have releases named by build number).\n\n## License\nThe MIT License \u0026copy; 2015 - 2016\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdwv%2Fcronos-database-dumper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdwv%2Fcronos-database-dumper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdwv%2Fcronos-database-dumper/lists"}