NAME

WE_Frontend::Publish::Rdist - publish files via rdist protocol

SYNOPSIS

use WE_Frontend::Main2;
use WEsiteinfo qw($c);
$c->staging->transport("rdist");
$main->publish;

DESCRIPTION

Please note that you need rsh authentification (.rhosts) setup to use rdist over remote hosts. If instead ssh transport is wished, then the transport config member should be set to rdist-ssh, and the ssh setup notes in WE_Frontend::Publish::Rsync apply.

WEsiteinfo.pm SETUP

The staging object of WEsiteinfo.pm should be set as follows:

$staging->transport("rdist");
# $staging->transport("rdist-ssh"); # to use ssh instead of rsh
$staging->user("remoteuser"); # or leave empty if on same host
$staging->host("remotehost"); # or leave empty if on same host
$staging->directory("subdirectory_on_remote for htdocs");
$staging->cgidirectory("subdirectory_on_remote for cgi-bin");
$project->stagingextracgi(["we_redisys.cgi", "..."]); # for cgi scripts
$project->stagingexcept(["index.html", "..."]); # exclude in htdocs
$project->stagingexceptpat(["*.pdf", "..."]); # exclude globs in htdocs
$project->stagingadditional({"index-live.html" => "index.html"}); # additional files with renaming (these should/could be also excluded!)
$staging->stagingext({deleteold => 0}); # set to true if old remote files should be deleted (dangerous!)

If the stagingext member contains the key-value pair distfile, then this is used as the Distfile for rdist.

AUTHOR

Slaven Rezic - slaven@rezic.de

SEE ALSO

rdist(1).