Menu

#15 Use passive transfer for FTP upload of backup archives

open
None
5
2007-02-09
2005-11-24
Anonymous
No

As I had a problem with the upload of my archive files
to the backup server using FTP I discovered that the
connection to the FTP server does not work very well
from my server when not using passive transfer in my
FTP client (I think it is a problem with my firewall
that is very restrictive). After I modified reoback.pl
to use passive transfer too, the backup and upload
worked just fine.
So I suggest to put an option in the config file so the
user can select to use an passive FTP connection.

Discussion

  • Harald Weinreich

    Logged In: YES
    user_id=583374

    In fact the change is very simple: Just add Passive => 1
    when the new ftp connection is created in reoback.pl:
    ...
    if ( $config{"rbackuptype"} eq "FTP" ) {
    $ftp = Net::FTP->new( $config{"remotehost"}, Debug => 0,
    Passive => 1 ) or
    die ( "Unable to connect to remote host! : $!\n" );
    ...

     
  • Andy Swanner

    Andy Swanner - 2007-02-09
    • assigned_to: nobody --> andys6276
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.