简体   繁体   English

备份并下载.sql文件Laravel 4

[英]Backup and download .sql file 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? 我只是想知道是否有一种快速简便的方法来将整个数据库转储到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. 一旦文件被转储,我就可以处理压缩和下载,只是想知道是否存在使用laravel 4转储数据库的简便方法。

Any help appriciated 任何帮助

Thanks 谢谢

Although packages like https://github.com/heybigname/backup-manager are perfect for backing up a database. 尽管像https://github.com/heybigname/backup-manager之类的软件包非常适合备份数据库。 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. 最后,我使用了https://github.com/bradcornford/Backup ,这是一个很棒的软件包,可以使用一种简单的方法即时备份数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM