Rsync::Config is a Perl module for rsync configuration generator.
Rsync::Config is a module who can be used to create rsync configuration files. A configuration file (from Rsync::Config point of view) is made by atoms and modules with atoms. A atom is the smallest piece from the configuration file. This module inherits from Rsync::Config::Module .
INHERITANCE
Objects from Rsync::Config inherits as in the next scheme
/--- Rsync::Config::Module --- Rsync::Config
Rsync::Config::Renderer
--- Rsync::Config::Blank
/
Rsync::Config::Atom --- --- Rsync::Config::Comment
SYNOPSIS
use Rsync::Config;
use Rsync::Config::Atom;
use Rsync::Config::Module;
sub main {
my ($conf, $module);
$conf = new Rsync::Config();
$conf->add_comment('Main configuration file for our rsync daemon');
$conf->add_atom('read only','yes');
$conf->add_atom('chroot','yes');
$module = new Rsync::Config::Module(name => 'cpan');
$module->add_atom('path','/var/ftp/pub/mirrors/ftp.cpan.org/');
$module->add_atom('comment', 'CPAN mirror');
$conf->add_module($module);
$conf->to_file('/etc/rsyncd.conf');
}
Product's homepage
Requirements:
· Perl