diff options
author | Oliver Tappe | 2008-02-25 16:20:44 +0100 |
---|---|---|
committer | Oliver Tappe | 2008-02-25 16:20:44 +0100 |
commit | 31a49734ff8448e0efd18e48d045f6fd79dcd25e (patch) | |
tree | df4b696f8486ea22e17261ff1116b15ac9f1aabb /installer/OpenSLX/OSExport/FileSystem/NFS.pm | |
parent | * adjusted plugin-API according to recent discussion with Volker: (diff) | |
download | core-31a49734ff8448e0efd18e48d045f6fd79dcd25e.tar.gz core-31a49734ff8448e0efd18e48d045f6fd79dcd25e.tar.xz core-31a49734ff8448e0efd18e48d045f6fd79dcd25e.zip |
* added support for specifying additional rsync options via environment
variable SLX_RSYNC_OPTIONS (for both cloning and exporting)
* log rsync-cmd with verbose-level=2 when exporting a vendor-OS
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1571 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSExport/FileSystem/NFS.pm')
-rw-r--r-- | installer/OpenSLX/OSExport/FileSystem/NFS.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/installer/OpenSLX/OSExport/FileSystem/NFS.pm b/installer/OpenSLX/OSExport/FileSystem/NFS.pm index 1c4f5fbf..9ab1ddfe 100644 --- a/installer/OpenSLX/OSExport/FileSystem/NFS.pm +++ b/installer/OpenSLX/OSExport/FileSystem/NFS.pm @@ -147,10 +147,12 @@ sub _copyViaRsync my $includeExcludeList = $self->_determineIncludeExcludeList(); vlog(1, _tr("using include-exclude-filter:\n%s\n", $includeExcludeList)); my $rsyncFH; - open( - $rsyncFH, '|-', - "rsync -av --delete-excluded --exclude-from=- $source/ $target" - ) + my $additionalRsyncOptions = $ENV{SLX_RSYNC_OPTIONS} || ''; + my $rsyncCmd + = "rsync -av --delete-excluded --exclude-from=- $additionalRsyncOptions" + . " $source/ $target"; + vlog(2, "executing: $rsyncCmd\n"); + open($rsyncFH, '|-', $rsyncCmd) or die _tr("unable to start rsync for source '%s', giving up! (%s)", $source, $!); print $rsyncFH $includeExcludeList; |