Configuring StreamHub as an FTP Client
When configured as an FTP client, the StreamHub is used for the automatic transfer of all new forwarded files to one or several distant FTP servers (FTP Push). FTP and sFTP protocols are supported.
- In the menu bar, click on Settings.
In the sidebar, click on FTP Push.
Note
The number of destination servers to be configured depends on the license.
- Click the button to add an FTP profile.
- Enter a name for the new FTP profile.
- Tick the Enable FTP box.
- The Automatic source file delete after transfer option allows StreamHub to automatically delete the source file when the transfer completes.
- If you tick the Create remote destination path option, you can enter a path different from existing ones.
Select ACTIVE or PASSIVE mode.
Note
Passive mode is most suitable if there is a firewall between the StreamHub server and the FTP server.
- Select either the FTP or sFTP protocol.
- In the Host and Ports field, enter the hostname and port of the destination server, respectively. The default port is 21.
- Enter the Username and Password to authenticate to the destination FTP server.
- In the Path field, enter the path where the files will be transferred. For example, leave this field blank or enter "/" (slash character) to set to the root folder of the destination FTP server. If the path does not exist on the remote server, the path is created if the Create remote destination path checkbox is enabled.
In the Rules field, define the types of files to automatically transfer to the destination FTP server that you are configuring.
These regular expressions need to be of the perl type. Some examples are provided below:Rule
Result
.*
To transfer all the files received, recorded, or transcoded by StreamHub.
.*mp4
To transfer mp4 files only.
.*(mp4/mov)
To transfer mp4 and mov files.
rec.*
To transfer all the files recorded by StreamHub.
.*_tr.mp4
To transfer all the files transcoded by StreamHub.
Click the Test button to ensure that the StreamHub can connect to the FTP destination and transfer the files to the destination FTP server according to the rules you set.
If there is any issue, check the network configuration and refer to the Installation & Configuration Guide.- Click on Save.