Motion - FTP At Interval When Updated Script

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, StephTheGeek
Copyright © 1999-2024 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.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.