Skip to header Skip to main navigation Skip to main content Skip to footer

User account menu

  • Log in
Amaël BERTEAU
Software Craftsman & Maker

Main navigation

  • Home
  • News
  • Software Engineering
  • Maker
  • Entrepreneuriat
  • Misc
  • Personal Projects
    • Bio
    • Curriculum Vitae
    • Skills
    • Likes
    • My Values
    • Quotes
    • Favorite Books
    • Favorite Tools

Backup MySQL Database by ASP.Net MVC Actions

Breadcrumb

  • Home
  • Software Engineering
  • Backup MySQL Database by ASP.Net MVC Actions

Software Engineering

  • Agile
  • Concepts / Practices
  • Architecture / Design
  • Implementation
  • Tools
    • FR
    • EN
By aberteau | 11:36 PM CEST, Tue July 25, 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

ASP.Net MVC
MySQL

Footer menu

  • Contact

Copyright © 2026 Amael BERTEAU - All rights reserved