|
|
cd95a1 |
|
|
|
cd95a1 |
Summary: Relax-and-Recover is a Linux disaster recovery and system migration tool
|
|
|
cd95a1 |
Name: rear
|
|
|
cd95a1 |
Version: 2.00
|
|
|
cd95a1 |
Release: 4%{?dist}
|
|
|
cd95a1 |
License: GPLv3
|
|
|
cd95a1 |
Group: Applications/File
|
|
|
cd95a1 |
URL: http://relax-and-recover.org/
|
|
|
cd95a1 |
|
|
|
cd95a1 |
# as GitHub stopped with download section we need to go back to Sourceforge for downloads
|
|
|
cd95a1 |
Source0: https://sourceforge.net/projects/rear/files/rear/2.00/%{version}/rear-%{version}.tar.gz
|
|
|
cd95a1 |
Patch0: pr-1481.patch
|
|
|
cd95a1 |
Patch1: rear-bz1532676-pr1685.patch
|
|
|
cd95a1 |
#Patch0: 0001-Added-PRE-POST-backup-scripts-in-order-to-be-able-to.patch
|
|
|
cd95a1 |
#Patch1: 0002-Solved-error-with-exit-tasks-on-PRE-POST-backup-scri.patch
|
|
|
cd95a1 |
#Patch2: 0003-Added-some-explanation-of-PRE-POST-backup-scripts-in.patch
|
|
|
cd95a1 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
cd95a1 |
ExcludeArch: s390x
|
|
|
cd95a1 |
ExcludeArch: s390
|
|
|
cd95a1 |
|
|
|
cd95a1 |
### Dependencies on all distributions
|
|
|
cd95a1 |
Requires: binutils
|
|
|
cd95a1 |
Requires: ethtool
|
|
|
cd95a1 |
Requires: gzip
|
|
|
cd95a1 |
Requires: iputils
|
|
|
cd95a1 |
Requires: parted
|
|
|
cd95a1 |
Requires: tar
|
|
|
cd95a1 |
Requires: openssl
|
|
|
cd95a1 |
Requires: gawk
|
|
|
cd95a1 |
Requires: attr
|
|
|
cd95a1 |
|
|
|
cd95a1 |
### If you require NFS, you may need the below packages
|
|
|
cd95a1 |
#Requires: nfsclient portmap rpcbind
|
|
|
cd95a1 |
|
|
|
cd95a1 |
### We drop LSB requirements because it pulls in too many dependencies
|
|
|
cd95a1 |
### The OS is hardcoded in /etc/rear/os.conf instead
|
|
|
cd95a1 |
#Requires: redhat-lsb
|
|
|
cd95a1 |
|
|
|
cd95a1 |
### Required for Bacula/MySQL support
|
|
|
cd95a1 |
#Requires: bacula-mysql
|
|
|
cd95a1 |
|
|
|
cd95a1 |
### Required for OBDR
|
|
|
cd95a1 |
#Requires: lsscsi sg3_utils
|
|
|
cd95a1 |
|
|
|
cd95a1 |
### Optional requirement
|
|
|
cd95a1 |
#Requires: cfg2html
|
|
|
cd95a1 |
|
|
|
cd95a1 |
%ifarch x86_64 i686
|
|
|
cd95a1 |
Requires: syslinux
|
|
|
cd95a1 |
%endif
|
|
|
cd95a1 |
%ifarch ppc ppc64
|
|
|
cd95a1 |
Requires: yaboot
|
|
|
cd95a1 |
%endif
|
|
|
cd95a1 |
|
|
|
cd95a1 |
Requires: crontabs
|
|
|
cd95a1 |
Requires: iproute
|
|
|
cd95a1 |
Requires: mkisofs
|
|
|
cd95a1 |
|
|
|
cd95a1 |
# mingetty is not available anymore with RHEL 7 (use agetty instead via systemd)
|
|
|
cd95a1 |
# Note that CentOS also has %rhel defined so there is no need to use %centos
|
|
|
cd95a1 |
%if 0%{?rhel} && 0%{?rhel} > 6
|
|
|
cd95a1 |
Requires: util-linux
|
|
|
cd95a1 |
%else
|
|
|
cd95a1 |
Requires: mingetty
|
|
|
cd95a1 |
Requires: util-linux
|
|
|
cd95a1 |
%endif
|
|
|
cd95a1 |
|
|
|
cd95a1 |
### The rear-snapshot package is no more
|
|
|
cd95a1 |
#Obsoletes: rear-snapshot
|
|
|
cd95a1 |
|
|
|
cd95a1 |
%description
|
|
|
cd95a1 |
Relax-and-Recover is the leading Open Source disaster recovery and system
|
|
|
cd95a1 |
migration solution. It comprises of a modular
|
|
|
cd95a1 |
frame-work and ready-to-go workflows for many common situations to produce
|
|
|
cd95a1 |
a bootable image and restore from backup using this image. As a benefit,
|
|
|
cd95a1 |
it allows to restore to different hardware and can therefore be used as
|
|
|
cd95a1 |
a migration tool as well.
|
|
|
cd95a1 |
|
|
|
cd95a1 |
Currently Relax-and-Recover supports various boot media (incl. ISO, PXE,
|
|
|
cd95a1 |
OBDR tape, USB or eSATA storage), a variety of network protocols (incl.
|
|
|
cd95a1 |
sftp, ftp, http, nfs, cifs) as well as a multitude of backup strategies
|
|
|
cd95a1 |
(incl. IBM TSM, HP DataProtector, Symantec NetBackup, EMC NetWorker,
|
|
|
cd95a1 |
Bacula, Bareos, rsync).
|
|
|
cd95a1 |
|
|
|
cd95a1 |
Relax-and-Recover was designed to be easy to set up, requires no maintenance
|
|
|
cd95a1 |
and is there to assist when disaster strikes. Its setup-and-forget nature
|
|
|
cd95a1 |
removes any excuse for not having a disaster recovery solution implemented.
|
|
|
cd95a1 |
|
|
|
cd95a1 |
Professional services and support are available.
|
|
|
cd95a1 |
|
|
|
cd95a1 |
%pre
|
|
|
cd95a1 |
if [ $1 -gt 1 ] ; then
|
|
|
cd95a1 |
# during upgrade remove obsolete directories
|
|
|
cd95a1 |
%{__rm} -rf %{_datadir}/rear/output/NETFS
|
|
|
cd95a1 |
fi
|
|
|
cd95a1 |
|
|
|
cd95a1 |
%prep
|
|
|
cd95a1 |
%setup
|
|
|
cd95a1 |
%patch0 -p1
|
|
|
cd95a1 |
%patch1 -p1
|
|
|
cd95a1 |
#%patch2 -p1
|
|
|
cd95a1 |
|
|
|
cd95a1 |
echo "30 1 * * * root /usr/sbin/rear checklayout || /usr/sbin/rear mkrescue" >rear.cron
|
|
|
cd95a1 |
|
|
|
cd95a1 |
### Add a specific os.conf so we do not depend on LSB dependencies
|
|
|
cd95a1 |
%{?fedora:echo -e "OS_VENDOR=Fedora\nOS_VERSION=%{?fedora}" >etc/rear/os.conf}
|
|
|
cd95a1 |
%{?rhel:echo -e "OS_VENDOR=RedHatEnterpriseServer\nOS_VERSION=%{?rhel}" >etc/rear/os.conf}
|
|
|
cd95a1 |
|
|
|
cd95a1 |
%build
|
|
|
cd95a1 |
|
|
|
cd95a1 |
%install
|
|
|
cd95a1 |
%{__rm} -rf %{buildroot}
|
|
|
cd95a1 |
%{__make} install DESTDIR="%{buildroot}"
|
|
|
cd95a1 |
%{__install} -Dp -m0644 rear.cron %{buildroot}%{_sysconfdir}/cron.d/rear
|
|
|
cd95a1 |
#%{__install} -Dp -m0644 etc/udev/rules.d/62-rear-usb.rules %{buildroot}%{_sysconfdir}/udev/rules.d/62-rear-usb.rules
|
|
|
cd95a1 |
%clean
|
|
|
cd95a1 |
%{__rm} -rf %{buildroot}
|
|
|
cd95a1 |
|
|
|
cd95a1 |
%files
|
|
|
cd95a1 |
%defattr(-, root, root, 0755)
|
|
|
cd95a1 |
%doc AUTHORS COPYING README.adoc doc/*.txt
|
|
|
cd95a1 |
%doc %{_mandir}/man8/rear.8*
|
|
|
cd95a1 |
%config(noreplace) %{_sysconfdir}/cron.d/rear
|
|
|
cd95a1 |
%config(noreplace) %{_sysconfdir}/rear/
|
|
|
cd95a1 |
#%config(noreplace) %{_sysconfdir}/udev/rules.d/62-rear-usb.rules
|
|
|
cd95a1 |
%{_datadir}/rear/
|
|
|
cd95a1 |
%{_localstatedir}/lib/rear/
|
|
|
cd95a1 |
%{_sbindir}/rear
|
|
|
cd95a1 |
|
|
|
cd95a1 |
%changelog
|
|
|
cd95a1 |
* Fri Jan 12 2018 Pavel Cahyna <pcahyna@redhat.com> - 2.00-4
|
|
|
cd95a1 |
- cd to the correct directory before md5sum to fix BACKUP_INTEGRITY_CHECK.
|
|
|
cd95a1 |
Upstream PR#1685, bz1532676
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Wed Sep 13 2017 Pavel Cahyna <pcahyna@redhat.com> - 2.00-3
|
|
|
cd95a1 |
- Fix rear mkrescue on systems w/o UEFI. Upstream PR#1481 issue#1478
|
|
|
cd95a1 |
- Resolves: #1479002
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Wed May 17 2017 Jakub Mazanek <jmazanek@redhat.com> - 2.00-2
|
|
|
cd95a1 |
- Excluding Archs s390 and s390x
|
|
|
cd95a1 |
- Related #1355667
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Mon Feb 20 2017 Jakub Mazanek <jmazanek@redhat.com> - 2.00-1
|
|
|
cd95a1 |
- Rebase to version 2.00
|
|
|
cd95a1 |
- Resolves #1355667
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Tue Jul 19 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-6
|
|
|
cd95a1 |
- Replace experimental grep -P with grep -E
|
|
|
cd95a1 |
Resolves: #1290205
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Wed Mar 23 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-5
|
|
|
cd95a1 |
- Remove backuped patched files
|
|
|
cd95a1 |
Related: #1283930
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Wed Mar 23 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-4
|
|
|
cd95a1 |
- Rear recovery over teaming interface will not work
|
|
|
cd95a1 |
Resolves: #1283930
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Tue Mar 08 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-3
|
|
|
cd95a1 |
- Replace experimental grep -P with grep -E
|
|
|
cd95a1 |
Resolves: #1290205
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Tue Feb 23 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-2
|
|
|
cd95a1 |
- rear does not require syslinux
|
|
|
cd95a1 |
- changing to arch package so that syslinux is installed
|
|
|
cd95a1 |
- Resolves: #1283927
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Mon Sep 14 2015 Petr Hracek <phracek@redhat.com> - 1.17.2-1
|
|
|
cd95a1 |
- New upstream release 1.17.2
|
|
|
cd95a1 |
Related: #1059196
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Wed May 13 2015 Petr Hracek <phracek@redhat.com> 1.17.0-2
|
|
|
cd95a1 |
- Fix Source tag
|
|
|
cd95a1 |
Related: #1059196
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Mon May 04 2015 Petr Hracek <phracek@redhat.com> 1.17.0-1
|
|
|
cd95a1 |
- Initial package for RHEL 7
|
|
|
cd95a1 |
Resolves: #1059196
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Fri Oct 17 2014 Gratien D'haese <gratien.dhaese@gmail.com>
|
|
|
cd95a1 |
- added the suse_version lines to identify the corresponding OS_VERSION
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Fri Jun 20 2014 Gratien D'haese <gratien.dhaese@gmail.com>
|
|
|
cd95a1 |
- add %%pre section
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Thu Apr 11 2013 Gratien D'haese <gratien.dhaese@gmail.com>
|
|
|
cd95a1 |
- changes Source
|
|
|
cd95a1 |
|
|
|
cd95a1 |
* Thu Jun 03 2010 Dag Wieers <dag@wieers.com>
|
|
|
cd95a1 |
- Initial package. (using DAR)
|