2009-09-10 10:48:28 +00:00
|
|
|
Summary: (pseudo) incremental backup with different exclude lists using hardlinks and rsync
|
|
|
|
Name: ccollect
|
2017-12-19 08:42:49 +00:00
|
|
|
Version: 2.2
|
2009-09-10 10:48:28 +00:00
|
|
|
Release: 0
|
|
|
|
URL: http://www.nico.schottelius.org/software/ccollect
|
|
|
|
Source0: http://www.nico.schottelius.org/software/ccollect/%{name}-%{version}.tar.bz2
|
|
|
|
|
2009-11-02 06:49:57 +00:00
|
|
|
License: GPL-3
|
2009-09-10 10:48:28 +00:00
|
|
|
Group: Applications/System
|
|
|
|
Vendor: Nico Schottelius <nico-ccollect@schottelius.org>
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%(id -un)
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: rsync
|
|
|
|
|
|
|
|
%description
|
|
|
|
Ccollect backups data from local and remote hosts to your local harddisk.
|
|
|
|
Although ccollect creates full backups, it requires very less space on the backup medium, because ccollect uses hardlinks to create an initial copy of the last backup.
|
|
|
|
Only the inodes used by the hardlinks and the changed files need additional space.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2017-12-19 08:42:49 +00:00
|
|
|
#Installing main ccollect and /etc directory
|
2009-09-10 10:48:28 +00:00
|
|
|
%__install -d 755 %buildroot%_bindir
|
|
|
|
%__install -d 755 %buildroot%_sysconfdir/%name
|
2017-12-19 08:42:49 +00:00
|
|
|
%__install -m 755 ccollect %buildroot%_bindir/
|
2009-09-10 10:48:28 +00:00
|
|
|
|
|
|
|
#bin files from tools directory
|
|
|
|
for t in $(ls tools/ccollect_*) ; do
|
|
|
|
%__install -m 755 ${t} %buildroot%_bindir/
|
|
|
|
done
|
|
|
|
|
|
|
|
#Configuration examples and docs
|
|
|
|
%__install -d 755 %buildroot%_datadir/doc/%name-%version/examples
|
|
|
|
|
|
|
|
%__install -m 644 README %buildroot%_datadir/doc/%name-%version
|
|
|
|
%__install -m 644 COPYING %buildroot%_datadir/doc/%name-%version
|
|
|
|
%__install -m 644 CREDITS %buildroot%_datadir/doc/%name-%version
|
|
|
|
%__install -m 644 conf/README %buildroot%_datadir/doc/%name-%version/examples
|
|
|
|
%__cp -pr conf/defaults %buildroot%_datadir/doc/%name-%version/examples/
|
|
|
|
%__cp -pr conf/sources %buildroot%_datadir/doc/%name-%version/examples/
|
|
|
|
|
|
|
|
#Addition documentation and some config tools
|
|
|
|
%__install -d 755 %buildroot%_datadir/%name/tools
|
2017-12-19 08:42:49 +00:00
|
|
|
%__install -m 755 tools/called_from_remote_pre_exec %buildroot%_datadir/%name/tools
|
2009-09-10 10:48:28 +00:00
|
|
|
%__cp -pr tools/config-pre-* %buildroot%_datadir/%name/tools
|
2017-12-19 08:42:49 +00:00
|
|
|
%__install -m 755 tools/report_success %buildroot%_datadir/%name/tools
|
2009-09-10 10:48:28 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/ccollect*
|
|
|
|
%_datadir/doc/%name-%version
|
|
|
|
%_datadir/%name/tools
|
|
|
|
%docdir %_datadir/doc/%name-%version
|
|
|
|
%dir %_sysconfdir/%name
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Thu Aug 20 2009 Nico Schottelius <nico-ccollect@schottelius.org> 0.8
|
|
|
|
- Introduce consistenst time sorting (John Lawless)
|
|
|
|
- Check for source connectivity before trying backup (John Lawless)
|
|
|
|
- Defensive programming patch (John Lawless)
|
|
|
|
- Some code cleanups (argument parsing, usage) (Nico Schottelius)
|
|
|
|
- Only consider directories as sources when using -a (Nico Schottelius)
|
|
|
|
- Fix general parsing problem with -a (Nico Schottelius)
|
|
|
|
- Fix potential bug when using remote_host, delete_incomplete and ssh (Nico Schottelius)
|
|
|
|
- Improve removal performance: minimised number of 'rm' calls (Nico Schottelius)
|
|
|
|
- Support sorting by mtime (John Lawless)
|
|
|
|
- Improve option handling (John Lawless)
|
|
|
|
- Add support for quiet operation for dead devices (quiet_if_down) (John Lawless)
|
|
|
|
- Add smart option parsing, including support for default values (John Lawless)
|
|
|
|
- Updated and cleaned up documentation (Nico Schottelius)
|
|
|
|
- Fixed bug "removal of current directory" in ccollect_delete_source.sh (Found by G????nter St????hr, fixed by Nico Schottelius)
|
|
|
|
|