https://github.com/sgpinkus/backups-lvm-mysql
https://github.com/sgpinkus/backups-lvm-mysql
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sgpinkus/backups-lvm-mysql
- Owner: sgpinkus
- Created: 2019-08-02T06:48:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-03T00:40:43.000Z (almost 6 years ago)
- Last Synced: 2025-02-13T14:18:07.204Z (4 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
A simple wrapper script to get a MySQL backup from an LVM snapshot. The script `./backups-lvm-mysql.sh` does the following:1. MySQL flush and lock tables
2. Take LVM snapshot
3. MySQL unlock tables
4. cp snapped MySQL database files to some configured location
5. Remove LVM snapshotA good alternative to say `mysqldump` if your using LVM. See http://www.lullabot.com/blog/article/mysql-backups-using-lvm-snapshots.
# Installation
Given a valid config you can run from CWD. Optionally you can exec the Makefile which ~just dumps everything in `/etc/backups-lvm-mysql/`.sudo make install
# Usage
./backups-lvm-mysql.sh
# Dependencies
lvm, python3, bash.