Skip to content

bahirul/mysql-backup-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysql-backup-py

Python script for backup mysql databases.

mysql-backup-py

Install

  • use virtualenv python3 (recommended) or globaly install require module with pip

with virtualenv

  • activate virtualenv python3

    • run source ./venv/bin/activate
  • required modules install

    • run pip install -r requirements.txt

direclty

  • required modules install (globaly)
    • run pip install -r requirements.txt

usage

  • run script

    • run python3 run.py
  • clean folder

    • run python3 flush.py
  • restore backup

    • run python3 restore.py
  • restore backup (force/skip errors)

    • run python3 restore.py --force

Scheduler

  • run scheduler with nohup

    • run nohup python3 scheduler.py &
  • see scheduler process PID

    • run ps ax | grep scheduler.py
  • stop scheduler

    • run kill PID

Releases

No releases published

Packages

No packages published

Languages