Bash script to FTP images to a remote server when the file has been updated

Introduction

Motion is great, but it doesn't have any built in FTP functionality. In order to ease the load directly on my local server, I wanted to FTP the latest images to my server, but only when they had been updated since the last upload.

Installation

You need to install ncftpput and save the code linked below into a file which you then call at a certain interval in your cron file. You should also alter the directories and cam filename pattern to suit your Motion setup. You'll also need to initially touch the flag file (camtime) manually first.

The script code can be found here.

Comments and Bug Reports


RelatedProjectsForm edit

ProjectSummary Simple script to FTP images to a remote server at a certain interval (run through cron), only when updated
ProjectStatus Beta
ReleaseVersion
ProjectSubmitter StephTheGeek?
Topic revision: r1 - 01 Sep 2007 - 21:28:24 - StephTheGeek
 
Motion - FTPAt Interval When Updated Script
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.