Skip to main content
Amaël BERTEAU

Main navigation

  • Home
  • News
  • Software Engineering
  • Entrepreneuriat
  • Maker
  • Misc
  • Personal Projects
  • About me
    • Bio
    • Curriculum Vitae
    • Skills
    • Likes
    • My Values
    • Quotes
    • Favorite Books
    • Favorite Tools
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Software Engineering

Backup MySQL Database by ASP.Net MVC Actions

By aberteau , 25 July, 2017

In some cases, it can be convenient to be able to backup database directly from your WebApp.

The purpose of this tutorial is to implement a DbBackupController containing 3 actions :

  • Sql (SQL dump plain text)
  • DownloadSql (SQL dump in file)
  • DownloadZip (SQL dump in zip file)

We will use the following libraries (All are available as NuGet packages) :

  • MySql.Data
  • SharpZipLib
  • MySqlBackup.NET

Implementation

IDbBackupService

DbBackupService

ZipHelper

DbBackupController

Tags

  • ASP.Net MVC
  • MySQL

Comments

RSS feed
Powered by Drupal