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