Backup to non standard FTP port

micheld

Verified User
Joined
Apr 5, 2006
Messages
55
Location
NL
Hello Support

I want to make backups to Ftp server to port 1555 on new glftpd server.
But i can not change the ftp port on directadmin panel.

Want to ask for feature request

Thanks!
 
Thanks it works i add -P 1555 before ftp_ip.

When i do a restore must change a other php file?

Thanks,
Michel
 
ftp_upload.php different port

After upgrade directadmin to 1.31.5.
The file in /usr/local/directadmin/scripts/ftp_upload.php is change. I now that.
But when i add again -P 1555 in to the line, it do not work. Do directadmin change things to other ftp script? On the prompt FTPPUT is work to the ftp server still on port 1555.

#$FTPPUT -t 25 -m -u "$ftp_username" -p "$ftp_password" -P 1555 "$ftp_ip" "$ftp_path" "$ftp_local_file" 2>&1

Can anyone help me?
 
Change to line (script is change)
$FTPPUT -f $CFG -t 25 -m -P 1555 "$ftp_path" "$ftp_local_file" 2>&1 and it works :)
 
Add as option already...

Looking at this script it seems as though this would take 2 seconds to add it to the regular user interface...I usually backup to 2 separate ftps, one for every day and one for every week and one of them uses non-standard port.
 
It still can easilly be added in with an if statement.
 
Hi John,

Great! Every update i must change the php script -P . And after this upgrade i change it forever!

Thanks!
Michel
 
Not that it will matter anymore in your case, but if you are customizing a script, always copy it to the "custom" directory first, and edit the custom copy. DA looks there first and will use your custom script if it exists. If not, it defers to the default scripts/filename (which is what I'm guessing you were editing). Any DA update will overwrite the scripts/filename, but will not overwrite scripts/custom/filename, so it would stay. Again it wont matter in your case anymore since the changes you've been making are now in the default files, but just in general, for future reference ;)

Jhn
 
I want to make backups to Ftp server (port 22).
I have problem with port change. I was change ftp_upload.php but no effect.

I fight with that from yesterday :/

How to change remote FTP port?
Is any log file from backup task? Where is system backup config file?

Please help :)

Regards
 
The ftp port is an option in all modern versions of DA.
Ensure you're using a current release and a DA skin.

Eg:
Admin Level -> Admin Backup/Transfer -> Backup: Where: Ftp: Port.

John
 
Thanks
It maybe problem. It's any possibility to refresh/ redownload skin files?
I have newest version of DA.

Regards
 
You could manually grab the newest pack:
http://help.directadmin.com/item.php?id=29

but check your user.conf to ensure the "docsroot" is set to the "enhanced" skin path:

docsroot=./data/skins/enhanced

Also, look for a /usr/local/directadmin/data/skins/enhanced/files_custom.conf which may imply something is overriding our skin files..
If it exists, look inside to see what it's doing.

John
 
Now i see that we talk about two different functions. I mean System Backup but no Admin Backup/Transfer.

In Admin Backup/Transfer section i see port input but it's not available in System Backup.

I will use Admin Backup/ Transfer :).

Regards
 
Last edited:
I have new problem with Admin/ Transfer Backup. I checked everything to backups (databases too) but all databe files (.sql) are empty (0 bytes).
Any ideas how to resolve this problem (maybe DA don't know mysql [mariaDB] password)?

Regards

EDIT:

Resolved
mkdir /var/run/mysqld
ln -s /home/mysql/mysql.sock /var/run/mysqld/mysqld.sock

Like a charm :)
 
Last edited:
Back
Top