Skip to content

adrianjean/database-backup-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Simple MySQL Database Backup Script

A simple script to backup all local mysql databases.

  • ✅ If MYSQL_USER and MYSQL_PASS are set in the script, it uses them (for automation/cron).
  • ✅ If they’re left blank, the script prompts interactively (for manual use).
  • ✅ Creates a backup directory using current date and time
  • ✅ Exports each database into a separate .sql file inside that folder
  • ✅ Compresses the entire backup folder into a .tar.gz archive
  • ✅ Optionally deletes the uncompressed folder after compression (commented out for safety)

About

A simple script to backup all local mysql databases.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages