I have a ASP.NET web-application with a MySQL database behind.
My users wants to make a backup of their data when clicking on a button.
How should I do that?
I was thinking of using mysqldump to create a database and let the user download this file.
But is that the easiest way? And what about performance ? I have currently 250 users working an the webapplication at the same time. So when they all press the backup button … I don’t want to let my server hanging while creating the backup.
Does anyone have an idea?
Thx
You can try this tool: MySqlBackup.NET, which is an alternative to MySqlDump.
Official Site & Documentation > http://mysqlbackupnet.codeplex.com/
Backup & Download a MySQL Database
Restore a MySQL Database
From the above example, MySqlBackup.NET will create a file name MyDumpFile.sql (The exported MySQL database).
You can cache the file for 5 or 10 minutes. If any user wants to get the exported MySQL Backup File within 5 or 10 minutes from time of creation, the cache file will be transmitted for his/her to download. If more than 5 or 10 minutes, new cache file will be generated again.
I am one of the author of this tool.