Daniel_Dog
Verified User
- Joined
- Nov 16, 2019
- Messages
- 450
Hello everyone,
I am currently working on a backup and restore script for the admin backups/restore that allows me to work with S3 storage.
I have it all working. (Exept for the download as that one is php based instead of shell/bash based.)
My script are currently working by adding it in the custom script folder and adding code to the existing ftp files.
This has the disadvantage that everytime DirectAdmin updates the ftp scripts it will not update my custom script with there changes.
That is why I would like to have my scripts check if port 443 is set as port and if not trigger the none custom script to handle the rest.
The only problem with this option (for as far as I can see at the moment) is that when I want to call the none custom scripts I need to give it a couple of variables.
So my question is:
Does anyone know what the names are from all the external variables passed to the ftp_upload.php, ftp_list.php and ftp_download.php files?
And also suggestions for this approuche are also welcome.
I am currently working on a backup and restore script for the admin backups/restore that allows me to work with S3 storage.
I have it all working. (Exept for the download as that one is php based instead of shell/bash based.)
My script are currently working by adding it in the custom script folder and adding code to the existing ftp files.
This has the disadvantage that everytime DirectAdmin updates the ftp scripts it will not update my custom script with there changes.
That is why I would like to have my scripts check if port 443 is set as port and if not trigger the none custom script to handle the rest.
The only problem with this option (for as far as I can see at the moment) is that when I want to call the none custom scripts I need to give it a couple of variables.
So my question is:
Does anyone know what the names are from all the external variables passed to the ftp_upload.php, ftp_list.php and ftp_download.php files?
And also suggestions for this approuche are also welcome.

Last edited: