# # spec file for package storeBackup # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: storeBackup Version: 3.5 Release: 8.1 Summary: A disk-to-disk backup tool for Linux License: GPL-3.0+ Group: Productivity/Archiving/Backup Source0: storeBackup-%{version}.tar.bz2 Source1: storeBackup-%{version}.config.default Source2: storeBackup-README.SUSE Patch0: storeBackup-%{version}.diff # PATCH-FIX-UPSTREAM earlier_execute_precommand.patch http://savannah.nongnu.org/bugs/?46605 Patch1: earlier_execute_precommand.patch # PATCH-FIX-OPENSUSE fix-rpmlint-env-script-interpreter.patch Patch2: fix-rpmlint-env-script-interpreter.patch Url: http://storebackup.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Requires: bzip2 Requires: e2fsprogs Requires: fileutils Requires: sh-utils Requires: textutils Recommends: cron %description storeBackup is a disk-to-disk backup tool for Linux. It should run on other Unix like machines. You can directly browse through the backuped files (locally, via NFS, via SAMBA or whatever). This gives the users the possibility to restore files absolutely easily and fast. He/She only has to copy (and possibly uncompress) the file. The is also a tool for easily restoring (sub) trees for the administrator. Every single backup of a specific time can be deleted without affecting the other existing backups. Before you can start using storeBackup, please carefully read /usr/share/doc/packages/storeBackup/README.1ST and create an appropriate configuration file /etc/storebackup.d/storebackup.config using /usr/share/doc/packages/storeBackup/storebackup.config.default as a template. %prep -n storeBackup %setup -n storeBackup %patch0 -p 1 %patch1 -p 0 %patch2 -p 1 %build # make %install # install -d ${RPM_BUILD_ROOT} \ ${RPM_BUILD_ROOT}/usr/lib/storeBackup/ \ ${RPM_BUILD_ROOT}/usr/bin/ \ ${RPM_BUILD_ROOT}/usr/share/doc/packages/storeBackup/ \ ${RPM_BUILD_ROOT}/etc/cron.daily/ \ ${RPM_BUILD_ROOT}/etc/storebackup.d/ \ ${RPM_BUILD_ROOT}/%{_mandir}/man1 # cp -a %{S:1} ./doc/storebackup.config.default cp -a %{S:2} ./doc/README.SUSE cp -a _ATTENTION_ correct.sh ./doc/ cp -aRpv bin/ lib/ ${RPM_BUILD_ROOT}/usr/lib/storeBackup/ cp -a cron-storebackup ${RPM_BUILD_ROOT}/etc/cron.daily/storebackup ln -sf /usr/lib/storeBackup/bin/storeBackup.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackup.pl ln -sf /usr/lib/storeBackup/bin/storeBackup.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackup ln -sf /usr/lib/storeBackup/bin/storeBackupCheckBackup.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupCheckBackup.pl ln -sf /usr/lib/storeBackup/bin/storeBackupCheckSource.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupCheckSource.pl ln -sf /usr/lib/storeBackup/bin/storeBackupConvertBackup.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupConvertBackup.pl ln -sf /usr/lib/storeBackup/bin/storeBackupDel.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupDel.pl ln -sf /usr/lib/storeBackup/bin/storeBackupMergeIsolatedBackup.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupMergeIsolatedBackup.pl ln -sf /usr/lib/storeBackup/bin/storeBackupMount.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupMount.pl ln -sf /usr/lib/storeBackup/bin/storeBackupRecover.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupRecover.pl ln -sf /usr/lib/storeBackup/bin/storeBackupReplicationWizard.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupReplicationWizard.pl ln -sf /usr/lib/storeBackup/bin/storeBackupSearch.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupSearch.pl ln -sf /usr/lib/storeBackup/bin/storeBackupSetupIsolatedMode.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupSetupIsolatedMode.pl ln -sf /usr/lib/storeBackup/bin/storeBackupUpdateBackup.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupUpdateBackup.pl ln -sf /usr/lib/storeBackup/bin/storeBackupVersions.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupVersions.pl ln -sf /usr/lib/storeBackup/bin/storeBackupls.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackupls.pl ln -sf /usr/lib/storeBackup/bin/storeBackup_du.pl ${RPM_BUILD_ROOT}/usr/bin/storeBackup_du.pl # install -m 644 man/man1/*.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1 ln -sf storeBackup.pl.1 $RPM_BUILD_ROOT%{_mandir}/man1/storeBackup.1 %{?suse_check} %files %defattr(-,root,root) %doc doc/* %doc %{_mandir}/man1/*.1.gz # ChangeLog LICENSE README.1ST _ATTENTION_ README storebackup.config.default README.SUSE /usr/lib/storeBackup/ %dir /etc/storebackup.d/ # %attr(755, root, root) %config(noreplace) /etc/storebackup.d/storebackup.config %attr(755, root, root) /usr/bin/* %attr(755, root, root) /etc/cron.daily/storebackup %changelog * Sun Mar 18 2018 suse@bugs.jan.ritzerfeld.org - fixed location of original README.1ST in README.SUSE and spec file * Sun Mar 18 2018 suse@bugs.jan.ritzerfeld.org - add fix-rpmlint-env-script-interpreter.patch: fix rpmlint perl env-script-interpreter errors * Mon May 29 2017 wagner-thomas@gmx.at - don't process vim's *.swp and *.udf files (in addition to *~) from /etc/storebackup.d/ * Sat Dec 5 2015 wagner-thomas@gmx.at - Added earlier_execute_precommand.patch: Fixed exceptDirs incomatible when mounting with precommand see http://savannah.nongnu.org/bugs/?46605 * Wed Aug 6 2014 wagner-thomas@gmx.at - config file backups in /etc/storebackup.d are now ignored (bnc#855477) * Mon Apr 21 2014 suse@bugs.jan.ritzerfeld.org - Update to 3.5: * Added wildcard support to series names and option - -createNewSeries for replication in storeBackupUpdateBackup.pl * Fixed ownership and permissions of sysmlinks and their targets in linkToDirs.pl * Added option --force to storeBackupIsolatedMode.pl * Added options --suppressTime, --maxFilelen, --noOfOldFiles, - -saveLogs, and --compressWith to storeBackupMount.pl * Added auto-detection for cpIsGnu on Linux in storeBackup.pl * Fixed exit on error message "no permissions to read ..." in storeBackup.pl * Added option stayInFileSystem to storeBackup.pl * Renamed option --noOldFiles to --noOfOldFiles in multiTail.pl * Mon Nov 11 2013 suse@bugs.jan.ritzerfeld.org - Update to 3.4.3: * Fixed occasional copying instead of hard linking identical blocks in blocked files * Added caching of already created directories in backup when using --lateLinks to reduce checking whether directory does already exist on high latency remote line * Renamed multitail.pl to multiTail.pl * Added options --print, --color, and --grep to multiTail.pl * Added option --printDepth to linkToDirs.pl * Added time frame support to --progressReport option of linkToDirs.pl * Fri Sep 27 2013 suse@bugs.jan.ritzerfeld.org - Update to 3.4.2: * Fixed reading output of external programs * Fixed option --debug in storeBackupUpdateBackup.pl * Added time frame support to --progressReport option * Added --createSparseFiles option to storeBackupRecover.pl and linkToDirs.pl to create sparse files when restoring blocked files and copying files, respectively * Sun Sep 8 2013 suse@bugs.jan.ritzerfeld.org - Update to 3.4.1: * Fixed rule functions MARK_DIR and MARK_DIR_REC when using saveRAM option * Added chapter "Internals" to documentation * Mon Aug 19 2013 suse@bugs.jan.ritzerfeld.org - Update to 3.4: * Store "special files" in individual cpio or tar archives on not system compatible file systems like NTFS or sshfs, - -archiveTypes and --specialTypeArchiver on the command line * Exclude defined directories from backup or compression by file system flags * Simple recreation of isolated mode * Some bug fixes * Sun Jun 16 2013 suse@bugs.jan.ritzerfeld.org - Update to 3.3.1: * rewritten storeBackupMount.pl, options have changed * easy compression rule, --checkCompr (-C) on the command line * Sun Mar 10 2013 suse@bugs.jan.ritzerfeld.org - Update to 3.3: * Improved configurability of file compression * Added isolated mode/offline backups * Added Replication of backups * Added linkToDirs.pl * Added storeBackupCheckSource.pl - Added "Recommends: cron" again, otherwise included automated backup script will not work - Linked all storeBackup* tools to /usr/bin - Included _ATTENTION_ and correct.sh in documentation - Included man pages * Mon Oct 1 2012 aj@suse.de - Really package README.SUSE and storebackup.config.default (bnc#780664). * Mon Jan 2 2012 cfarrell@suse.com - license update: GPL-3.0+ No indication of a GPL-3.0 "only" license in the package * Thu Dec 15 2011 coolo@suse.com - fix license to be in spdx.org format * Fri Jan 8 2010 mge@novell.com - Update to 3.2, fixes bnc#512990 - Thanks to Lars for providing the update. * Wed Apr 9 2008 crrodriguez@suse.de - soft 'Recommends' cron, otherwise included automated backup script will not work * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Mon Jan 23 2006 mge@suse.de - applied patches by lenz@grimmer.com (Tue Dec 13 2005): [#132857]: Fixed directory permissions * re-added the config file to the file list with the proper permissions, marked as ghost * use more macros * Tue Sep 6 2005 mge@suse.de - update to 1.19 includes fixes to several smaller issues, and mainly these bugs: [#73908]: Insecure tempfile-names [#73910]: too generous permissions of backup-root - also #100101: Installing storeBackup causes cron job failure emails is fixed * Fri Mar 18 2005 mge@suse.de - this patch is (nearly) 1.19, but not final - fixes #65788 - /etc/storebackup.d/storebackup.config should not be executable - fixes #65422 - storebackup symlink attack * Thu Aug 12 2004 mge@suse.de - update to 1.18.4 * Mon Mar 22 2004 mge@suse.de - update to 1.16.1: storeBackup.pl * better explanations in the configuration file and for command line options * better error messages * option --print did not work for some values * fixed a bug in the module for reading the configuration file with keepWeekday * when printing to a log file and to stdout simultaneously, a possible error message with exit is now also printed to stdout * option verbose now has the same effekt as debug=1 * Mon Mar 1 2004 mge@suse.de - update to 1.16 * Mon Feb 23 2004 hmacht@suse.de - building as non-root * Mon Sep 1 2003 mge@suse.de - update to 1.14 * Thu Aug 7 2003 mge@suse.de - update to 1.13 * Wed Jul 30 2003 mge@suse.de - initial checkin 1.12.2