Sales:  800-573-7846 or Live Chat

The ServInt Source

FTP / FTPS and File Management in Java and PHP Cloud Hosting

tech bench 2Editor’s note: A version of this post originally appeared on the Jelastic blog.

You asked us for it, and we’ve delivered: ServInt’s auto-scaling cloud service, Jelastic, now supports FTP.

You can now get easier access to your application files and have a fast, reliable way of file sharing and data transfer to and from your servers in Jelastic environments.

File Transfer Protocol (FTP) is a standard network protocol used to transfer files from one host to another over a TCP-based network. For secure transmission, use FTP secured with SSL (FTPS). ServInt’s Jelastic cloud supports both FTP and FTPS.

FTP in Jelastic allows you easily to upload and download necessary resources to corresponding folders. You can also work with a group of files instead of uploading/downloading each file separately through the dashboard. And it is not necessary to redeploy your application after applying your edits.

As you may know, Jelastic supports log rotation, which is designed for the easy administration of systems that generate large numbers of log files. This allows automatic rotation, compression, and removal of log files. The problem is, you can only read the latest logs through the Jelastic dashboard, not ones that have already been compressed. Now, with Jelastic FTP support, it’s easy to look through your old logs using any FTP-client.

It’s also very simple through FTP to enable synchronization between your local machine and your cloud environments as well as edit most config files — even those unavailable through the dashboard.

Let’s examine how you can get all these benefits using the instructions below:

1. Create an environment
2. Install FTP
3. Transfer files
4. Download log files
5. Sync files
6. Edit configuration files

Create an environment

1. Log in to your Jelastic account or sign up for your first “cloudlet” if you haven’t done so yet.

2. In the Jelastic dashboard, click “Create environment.”

jel backup 1

3. In the Environment topology dialog pick your application server (for example Tomcat 6 or 7) and switch on “Public IP.”  Switch on Public IPv4, set the cloudlet limit, type an environment name and click Create.

ftp1

Wait a moment for your environment to be created.

Install FTP

1. Click the “Add-ons” button for your application server.

ftp2

2. In the opened tab you’ll see the list of all applications available for adding to your environment. Find FTP and click “Install.”

ftp3

3. Сonfirm the installation by clicking “Install” button in the opened window.

After adding FTP to the Jelastic environment you’ll get the email with credentials for accessing (FTP links, Login, Password, IPs etc.).

Transfer files

1. Install and open any FTP client (we’ll use FileZilla as an example).

2. Enter your Host, Username and Password using the FTP credentials you received via email after FTP installation. Perform the connection by clicking Quickconnect.

ftp4

3. You can upload or download files simply by double-clicking on them. To transfer directories and/or multiple files select them, right-click the selection and then click on Upload/Download in the popup menu.

ftp5

4. You can simply drag the files from one directory and drop them on the other one for transferring.

5.  Add your files to the queue if you want to transfer them later.

ftp6

6. One more useful feature is directory comparison. To quickly see differences between files on the local machine and the server, choose View > Directory Comparison, select either “Compare filesize” or “Compare modification time” and click Enable.

ftp7

Download log files

1. Install and open any FTP client (we’ll use FileZilla as an example).

2. Enter your Host, Username and Password using the FTP credentials you received via email after FTP installation. Perform the connection by clicking Quickconnect.

3. Now you can simply download your logs: navigate to the logs folder, select the log file you need, download it, and open in any convenient editor to review.

ftp8

Sync files using GoodSync

1. Download and start GoodSync and click the Browse button on the left side.

2. In the opened window choose the FTP tab, fill in the required fields (Host, Username, Password) and click Go button.

 ftp9

3. Then choose the necessary folder on your server and click OK.

ftp10

4. Next, click the “Browse” button on the right side and choose the local folder you would like to back up or sync your data to.

ftp11

5. In the main window, click the “Analyze” button. You will be shown all the differences in the chosen folders.

ftp12

6. Click the “Sync” button to perform the synchronization.

Edit configuration files

1. Open your config editor (we’ll use Sublime Text 2 as an example).

2. Connect to your server via FTP (if you use Sublime, click File->FTP/SFTP->Browse server) and you can start editing your files.

ftp14

FTP support from Jelastic is a direct result of user feedback. Click here to join the conversation and help us find our next features.

The Tech Bench is an ongoing blog series featuring the answers to common questions the ServInt MST fields everyday. You can find this and more great tech tips in the ServInt KnowledgeBase.

About ServInt

The ServInt Source is your home for hosting industry news, trends and analysis.


The ServInt Source | Web Hosting Blog