1 |
Summary: Lightweight, extensible meta-backup system |
2 |
Name: backupninja |
3 |
Version: 0.9.7 |
4 |
Release: %mkrel 1 |
5 |
License: GPLv2 |
6 |
Group: Archiving/Backup |
7 |
URL: http://dev.riseup.net/backupninja/ |
8 |
Source0: http://dev.riseup.net/backupninja/download/%{name}-%{version}.tar.gz |
9 |
Requires(post): rpm-helper |
10 |
Requires: cdrdao |
11 |
Requires: cdrkit |
12 |
Requires: cdrkit-genisoimage |
13 |
Requires: dialog |
14 |
Requires: dvd+rw-tools |
15 |
Requires: hwinfo |
16 |
Requires: mailx |
17 |
Requires: mdadm |
18 |
Requires: python-pylibacl |
19 |
Requires: python-xattr |
20 |
Requires: rdiff-backup |
21 |
BuildArch: noarch |
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
23 |
|
24 |
%description |
25 |
Backupninja lets you drop simple config files in /etc/backup.d to coordinate |
26 |
system backups. Backupninja is a master of many arts, including incremental |
27 |
remote filesystem backup, MySQL backup, and ldap backup. By creating simple |
28 |
drop-in handler scripts, backupninja can learn new skills. Backupninja is a |
29 |
silent flower blossom death strike to lost data. |
30 |
|
31 |
In addition to backing up regular files, Backupninja has handlers to ease |
32 |
backing up: ldap, maildir, MySQL, PostgreSQL, svn, trac, and the output from |
33 |
shell scripts. |
34 |
|
35 |
Backupninja currently supports common backup utilities, easing their |
36 |
configuration, currently supported are: rdiff-backup, duplicity, CD/DVD |
37 |
|
38 |
%prep |
39 |
%setup -q |
40 |
|
41 |
%build |
42 |
autoreconf -fis |
43 |
%configure2_5x \ |
44 |
--libdir=%{_prefix}/lib \ |
45 |
--localstatedir=/var |
46 |
%make |
47 |
|
48 |
%install |
49 |
rm -rf %{buildroot} |
50 |
%makeinstall libdir=%{buildroot}%{_prefix}/lib |
51 |
install -d %{buildroot}%{_sysconfdir}/backup.d |
52 |
install -d %{buildroot}/var/backups |
53 |
install -d %{buildroot}/var/log |
54 |
install -d %{buildroot}/var/lib/backupninja/reports |
55 |
touch %{buildroot}/var/log/backupninja.log |
56 |
|
57 |
%post |
58 |
%create_ghostfile /var/log/backupninja.log root root 644 |
59 |
|
60 |
%clean |
61 |
rm -fr %{buildroot} |
62 |
|
63 |
%files |
64 |
%defattr(-,root,root,-) |
65 |
%doc AUTHORS COPYING ChangeLog NEWS README TODO |
66 |
%config %{_sysconfdir}/cron.d/backupninja |
67 |
%config %{_sysconfdir}/logrotate.d/backupninja |
68 |
%config(noreplace) %{_sysconfdir}/backupninja.conf |
69 |
%attr(0750,root,root) %dir %{_sysconfdir}/backup.d |
70 |
%{_sbindir}/* |
71 |
%{_datadir}/backupninja |
72 |
%{_prefix}/lib/backupninja |
73 |
%attr(0750,root,root) %dir /var/backups |
74 |
%attr(0750,root,root) %dir /var/lib/backupninja |
75 |
%attr(0750,root,root) %dir /var/lib/backupninja/reports |
76 |
%ghost /var/log/backupninja.log |
77 |
%{_mandir}/man1/* |
78 |
%{_mandir}/man5/* |
79 |
|
80 |
|