Send backups to different port than 21

avantis

Verified User
Joined
Nov 13, 2006
Messages
31
Hello,

Since 1.31 version i could not send backups to other port than 21.

Previously i updated ftp_upload.php script to send all backups to other port, but now, since FTP upload script has changed i could not send to different port.

Any idea what to update to send to different port ?
 
Hello,

Find the line:
Code:
$FTPPUT -t 25 -m -u "$ftp_username" -p "$ftp_password" "$ftp_ip" "$ftp_path" "$ftp_local_file" 2>&1
change it to:
Code:
$FTPPUT -t 25 -m -u "$ftp_username" -p "$ftp_password" "$ftp_ip" "$ftp_path" "$ftp_local_file" [b]-P 1234[/b] 2>&1
where 1234 is the port you want to use.

Type "man ncftpput" for more information on what you can customize.

John
 
Why Not

Why not add the option to change the port from the control panel ?

Chris
 
Back
Top