Skip to content

A database backup utility that can backup and restore any DB.

Notifications You must be signed in to change notification settings

Leela0o5/Database-Backup-CLI-Utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Database-Backup-CLI-Utility

A command-line utility to back up and restore databases. Supports PostgreSQL, MySQL, MongoDB, and SQLite.

Features

  • Backup and restore databases using native tools
  • Connection testing before backup/restore
  • Logging to file (backup_activity.log) and console

Installation

Clone the repository:

git clone https://github.com/Leela0o5/Database-Backup-CLI-Utility.git
cd Database-Backup-CLI-Utility

Commands

Command Description Key Options
backup Back up a database --db-type, --host, --port, --user, --password, --db-name, --output-file
restore Restore a database from backup file --db-type, --host, --port, --user, --password, --db-name, --input-file

Example Usage:

python main.py backup --db-type postgres --host localhost --port 5432 --user myuser --password mypass --db-name mydb --output-file /path/to/backup_file

python main.py restore --db-type mysql --host localhost --port 3306 --user myuser --password mypass --db-name mydb --input-file /path/to/backup_file

About

A database backup utility that can backup and restore any DB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages