备份和下载.sql文件Laravel 4

问题描述:

A project i am currently working on requires the ability to export the full database with a click of a button in an admin area of a website. I know theres plenty of packages out there for automatic backups to dropbox etc.. But thats not what is required for this project.

I was just wondering is there a fast and easy way to just dump the full database in laravel 4?

I can handle the zipping and downloading of the file once its been dumped just wondering if theres an easy way to dump a database with laravel 4.

Any help appriciated

Thanks

我目前正在处理的项目需要能够通过单击管理员中的按钮导出整个数据库 网站的区域。 我知道有很多软件包用于自动备份到Dropbox等。但这不是这个项目所需要的。 p>

我只是想知道是否有一种快速简便的方法可以在laravel 4中转储完整的数据库? p>

我可以处理文件的翻录和下载一旦被转储,只是想知道是否有一个简单的方法来转储laravel 4的数据库。 p>

任何帮助appriciated p>

谢谢 p> div>

Although packages like https://github.com/heybigname/backup-manager are perfect for backing up a database. They offer a lot more than i needed for this particular project.

In the end i used https://github.com/bradcornford/Backup which is a great package for backing up your database on the fly with one simple method.