Ok, so the Net::FTP would be run from server 2, log into server 1 and get the file, would that be the correct proceedure to do this?

Pseudo code to illustrate a sane implementation:

#!/usr/bin/perl

use strict;
use warnings;

my @ftp_hosts = _get_ftp_hosts_array();

backup_localhost() or log_die('backup failed ...');

for my $ftp_to(@ftp_hosts) {
    ftp_backup_to($ftp_to) or log_warn("$ftp_to FTP failed..");
}


one script, FTP gets done @ each backup instead of trying to coordinat efforts between multiple servers, lets you see in one place hwo the whole thing went, etc etc


> I'm not the fimilar with the Net::FTP module, but once it "gets" the
> file from server 1, how do you manipulate the file or simply put,
> print the file on server 2 after it's "gets" the file?

Net::FTP lets you do FTP with perl, then its just a matter of workign with files as normal

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to