From 21fe0bab9887e20506c11b4ac1d872ee4bd46148 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Wed, 6 Feb 2008 15:22:04 +0000 Subject: * added the contents of the following dirs to the exclude filter, since they do not make sense in the export: /media /mnt /proc /sys /tmp * added --delete-excluded to the rsync options in order to clean up anything that had been copied before git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1518 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/OpenSLX/OSExport/FileSystem/NFS.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'installer/OpenSLX/OSExport/FileSystem/NFS.pm') diff --git a/installer/OpenSLX/OSExport/FileSystem/NFS.pm b/installer/OpenSLX/OSExport/FileSystem/NFS.pm index e858f513..1c4f5fbf 100644 --- a/installer/OpenSLX/OSExport/FileSystem/NFS.pm +++ b/installer/OpenSLX/OSExport/FileSystem/NFS.pm @@ -147,7 +147,10 @@ sub _copyViaRsync my $includeExcludeList = $self->_determineIncludeExcludeList(); vlog(1, _tr("using include-exclude-filter:\n%s\n", $includeExcludeList)); my $rsyncFH; - open($rsyncFH, '|-', "rsync -av --delete --exclude-from=- $source/ $target") + open( + $rsyncFH, '|-', + "rsync -av --delete-excluded --exclude-from=- $source/ $target" + ) or die _tr("unable to start rsync for source '%s', giving up! (%s)", $source, $!); print $rsyncFH $includeExcludeList; -- cgit v1.2.3-55-g7522