-#
-# If you are appending to a log file (default), to
-# have your log file compressed, rotated, and after a time
-# deleted, after possibly editing the values below,
-# copy this file to:
-#
-# /etc/logrotate.d/bacula
-#
-/var/lib/bacula/log {
+/var/log/bacula/log {
+ olddir /var/log/archive/bacula
su root bacula
monthly
rotate 5
Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
Name: bacula
Version: 5.2.13
-Release: 1
+Release: 2
License: AGPL v3
Group: Networking/Utilities
Source0: http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,pam.d,sysconfig} \
$RPM_BUILD_ROOT%{_sysconfdir}/rescue \
$RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \
- $RPM_BUILD_ROOT{%{_mandir},%{_bindir},/var/log/bacula} \
+ $RPM_BUILD_ROOT{%{_mandir},%{_bindir},/var/log{,/archive}/bacula} \
$RPM_BUILD_ROOT%{systemdunitdir}
%{__make} install \
%attr(770,root,bacula) %dir %{_localstatedir}
%attr(750,bacula,logs) %dir /var/log/bacula
%attr(640,bacula,logs) %ghost /var/log/bacula/log
+%attr(750,bacula,logs) %dir /var/log/archive/bacula
%files dir
%defattr(644,root,root,755)