Skip to content

polimteo/MySQL-Database-Backup-Restore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Overview

This showcases how to perform manual, automated, and restore backups.

Manual Backup

  1. sql_store is the database I want to back up.

    image

  2. Set up the backup of the sql_store database into the path C:\polim\SQL\database_backup\sql_store_backup.sql on command prompt.

    image

  3. Successfully backup to the desired path.

    image

Automate Backup

  1. Created a backup.bat file that backs up sql_store database and appends the current date to the backup file name.

    image

    This is the result after running the backup.bat each time.

    image

  2. Use Task Scheduler to automatically run the backup.bat file.

    image

  3. Set up a schedule for the backup.

    image

  4. Add the backup.bat file to run at the scheduled time.

    image

  5. Done setup. image

Restore Database

  1. A new database named sql_store_backup was created. Initially, the database is empty.

    image

  2. Created a restore.bat file and selected the database to be restored to the newly created database, sql_store_backup.

    In this case, sql_store_backup.sql was chosen to restore to the database sql_store_backup.

    image

  3. Successfully restored to the database sql_store_backup.

    image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published