This script has been tested on servers running CentOS 4.2 with DirectAdmin 1.26.0 and backups over 1GB in filesize.
Since we've seen multiple requests for transfers over other interfaces then eth0 and we thought it could be useful for our company as well, we rewrote the ftp upload script from DirectAdmin.
The script is based on Curl in combination with Bash for error reporting. If I'm not mistaken, Curl comes with a standard DirectAdmin installation.
Installing it is as easy as 1 + 1.
The Curl binary is probably not in the same folder on all distributions. On CentOS 4.2 it's /usr/local/bin/curl. If it's not there on your server, open up ftp_upload.php and replace CURL=/usr/local/bin/curl with the path of your curl binary.
Default installation will transfer your backups over eth0. It can handle both eth0 and eth1 as eth0:1 or eth1:3 for instance. You can change the interface by opening up ftp_upload.php and changing ETH=eth0 to another interface.
If you want to return to the previous system you can uninstall it by performing the following commands:
Since we've seen multiple requests for transfers over other interfaces then eth0 and we thought it could be useful for our company as well, we rewrote the ftp upload script from DirectAdmin.
The script is based on Curl in combination with Bash for error reporting. If I'm not mistaken, Curl comes with a standard DirectAdmin installation.
Installing it is as easy as 1 + 1.
Code:
cd /usr/local/directadmin/scripts/
mkdir custom
wget -O /usr/local/directadmin/scripts/custom/ftp_upload.php [url]http://servecontent.sensson.net/files/ftp_upload[/url]
chmod +x ftp_upload.php
Default installation will transfer your backups over eth0. It can handle both eth0 and eth1 as eth0:1 or eth1:3 for instance. You can change the interface by opening up ftp_upload.php and changing ETH=eth0 to another interface.
If you want to return to the previous system you can uninstall it by performing the following commands:
Code:
rm -f /usr/local/directadmin/scripts/custom/ftp_upload.php
Last edited: