Search
j0ke.net Open Build Service
>
Projects
>
home:jg
>
mylvmbackup
> mylvmbackup.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File mylvmbackup.spec of Package mylvmbackup
Name: mylvmbackup Summary: Utility for creating MySQL backups via LVM snapshots Version: 0.12 Release: 1 License: GPL Group: Productivity/Archiving/Backup Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description mylvmbackup is a script for quickly creating backups of MySQL server's data files. To perform a backup, mylvmbackup obtains a read lock on all tables and flushes all server caches to disk, makes an LVM snapshot of the volume containing the MySQL data directory, and unlocks the tables again. The snapshot process takes only a small amount of time. When it is done, the server can continue normal operations, while the actual file backup proceeds. %prep %setup %install [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} mandir=%{_mandir} install %clean [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; %files %defattr(-, root, root) %config(noreplace,missingok) %attr(600, root, root) %{_sysconfdir}/mylvmbackup.conf %config(noreplace) %{_datadir}/%{name}/*.pm %doc ChangeLog COPYING CREDITS INSTALL README TODO %doc %{_mandir}/man1/%{name}.1* %dir %{_datadir}/%{name} %{_bindir}/%{name}