From c4d47430a133ae8c3e6f44a314a379eacdbd1dad Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Sun, 28 Sep 2003 04:39:14 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'merged-0-12'. git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/tags/merged-0-12@458 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/dist/rdiff-backup.spec | 51 ++++ rdiff-backup/rdiff_backup/eas_acls.py | 395 +++++++++++++++++++++++++++++++ rdiff-backup/testing/eas_aclstest.py | 344 +++++++++++++++++++++++++++ rdiff-backup/testing/resourceforktest.py | 104 ++++++++ rdiff-backup/testing/securitytest.py | 128 +++++++++- 5 files changed, 1019 insertions(+), 3 deletions(-) create mode 100644 rdiff-backup/dist/rdiff-backup.spec create mode 100644 rdiff-backup/rdiff_backup/eas_acls.py create mode 100644 rdiff-backup/testing/eas_aclstest.py create mode 100644 rdiff-backup/testing/resourceforktest.py diff --git a/rdiff-backup/dist/rdiff-backup.spec b/rdiff-backup/dist/rdiff-backup.spec new file mode 100644 index 0000000..2073b51 --- /dev/null +++ b/rdiff-backup/dist/rdiff-backup.spec @@ -0,0 +1,51 @@ +%define PYTHON_NAME %((rpm -q --quiet python2 && echo python2) || echo python) + +Version: $version +Summary: Convenient and transparent local/remote incremental mirror/backup +Name: rdiff-backup +Release: 2 +URL: http://www.stanford.edu/~bescoto/rdiff-backup/ +Source: %{name}-%{version}.tar.gz +Copyright: GPL +Group: Applications/Archiving +BuildRoot: %{_tmppath}/%{name}-root +requires: librsync >= 0.9.5.1, %{PYTHON_NAME} >= 2.2 +BuildPrereq: %{PYTHON_NAME}-devel >= 2.2, librsync-devel >= 0.9.5.1 + +%description +rdiff-backup is a script, written in Python, that backs up one +directory to another and is intended to be run periodically (nightly +from cron for instance). The target directory ends up a copy of the +source directory, but extra reverse diffs are stored in the target +directory, so you can still recover files lost some time ago. The idea +is to combine the best features of a mirror and an incremental +backup. rdiff-backup can also operate in a bandwidth efficient manner +over a pipe, like rsync. Thus you can use rdiff-backup and ssh to +securely back a hard drive up to a remote location, and only the +differences from the previous backup will be transmitted. + +%prep +%setup -q + +%build +%{PYTHON_NAME} setup.py build + +%install +%{PYTHON_NAME} setup.py install --prefix=$RPM_BUILD_ROOT/usr + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +/usr/bin/rdiff-backup +/usr/share/man/man1 +/usr/lib +%doc CHANGELOG COPYING FAQ.html README + +%changelog +* Sun Jan 19 2002 Troels Arvin +- Builds, no matter if Python 2.2 is called python2-2.2 or python-2.2. + +* Sun Nov 4 2001 Ben Escoto +- Initial RPM diff --git a/rdiff-backup/rdiff_backup/eas_acls.py b/rdiff-backup/rdiff_backup/eas_acls.py new file mode 100644 index 0000000..4b4d169 --- /dev/null +++ b/rdiff-backup/rdiff_backup/eas_acls.py @@ -0,0 +1,395 @@ +# Copyright 2003 Ben Escoto +# +# This file is part of rdiff-backup. +# +# rdiff-backup is free software; you can redistribute it and/or modify +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# rdiff-backup is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with rdiff-backup; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA + +"""Store and retrieve extended attributes and access control lists + +Not all file systems will have EAs and ACLs, but if they do, store +this information in separate files in the rdiff-backup-data directory, +called extended_attributes.