The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ftp backups enhancement

Discussion in 'General Discussion' started by webhostnet, May 6, 2005.

?

How about?

  1. Useful

    100.0%
  2. Useless

    0 vote(s)
    0.0%
  1. webhostnet

    webhostnet Member

    Joined:
    Apr 20, 2005
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    How about an easy way to specify the remote port for FTP?
    I;m doing my backups to a machine that runs ftp on 2121/tcp and I found that the only way to connect to that specific port is to alter the cpbackup script. This will lead to overwrites on updates and such. Can you add an option like " Ftp Backup Port (Remote Ftp Backup Only)"?

    Here is my cpbackup modification:

    Code:
    sub ftpsend  {                                                                                                   
    (code lines cutted here)
            my $ftp = Net::FTP->new("$ftphost", Debug => 1, Passive => $ftppassive, [COLOR=DarkRed]Port => 2121[/COLOR]);
    (code lines cutted here)
    }
    
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    #2 chirpy, May 6, 2005
    Last edited: May 6, 2005
Loading...

Share This Page