Video-lesson #3: backup with versioning and email notification

In this article we present a very simple FTP script that, in just a few lines of code, performs the following operations:

  • zips the contents of a folder
  • uploads the zip archive to an FTP server, renaming the old one (if exists, for versioning)
  • notifies the operator via email after the upload has completed

Here below you can see both the video (see it in action) and the actual code that has been used during the recording of such video. Continue reading

Scripting lesson #2: server to server file transfer

Thanks to the object-oriented design of FtpScripter, it’s very easy to write a script to act as a “proxy” and transfer files between two remote file servers, even if such file servers don’t support the same protocol. In the following example we transfer files from a FTP to a SFTP server, using the FtpScripter client as an intermediate point between the two. Continue reading

Scripting lesson #1: “hello world”

Let’s get started with FtpScripter’s scripting languages. The following script can be considered a sort of “hello world” script. It just connects to (and disconnects from) an SFTP server. All scripts that will be published in this section will be syntax highlighted and well commented, in an effort to make them self-explanatory. Here’s the first one, in JavaScript, fully commented. Continue reading

Installing FtpScripter

Installing FtpScripter on your computer is fairly easy. Just download the installer to your download folder (or anywhere else on your computer, like your desktop for instance) and double-click on it.
After accepting the license agreement and clicking the “Next” button few times, the installer will deploy FtpScripter onto your local computer.