Python script for backup mysql databases.
- use virtualenv python3 (recommended) or globaly install require module with
pip
-
activate virtualenv python3
- run
source ./venv/bin/activate
- run
-
required modules install
- run
pip install -r requirements.txt
- run
- required modules install (globaly)
- run
pip install -r requirements.txt
- run
-
run script
- run
python3 run.py
- run
-
clean folder
- run
python3 flush.py
- run
-
restore backup
- run
python3 restore.py
- run
-
restore backup (force/skip errors)
- run
python3 restore.py --force
- run
-
run scheduler with nohup
- run
nohup python3 scheduler.py &
- run
-
see scheduler process PID
- run
ps ax | grep scheduler.py
- run
-
stop scheduler
- run
kill PID
- run