/dbback

Primary LanguageGo

DB BACKUPPER

A CLI to backups DB currently support MySQL & PostgreSQL. It uses the mysqldump & pg_dump. So, you need to have them installed in the machine.

Prerequisite

Usage

Create a config.json based on example.config.json on the current working directory.

Options

backupper [options]

options:
    --help		show the help menu
    --dbaname	the database name
    --driver 	the database driver [mysql, postgres]
    --cron		run as cron job

Example

  • dbback --driver=mysql --dbname=foo_bar