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.

And here’s the source code:

Print Friendly
Bookmark the permalink.

Comments are closed