Thunberg's

When motion is installed,
we need to configure Motion to save captured images in a remote server,
for that we need to install
wput
a command line FTP client that can upload the captured photos produced by motion to a remote FTP server.
To install wput you enter the following command:

sudo apt-get install wput

Configure Motion to use wput edit motion.conf file :

sudo yourfavoriteEditor /etc/motion/motion.conf

And add these lines at the end of the file:

# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
# The filename of the picture is appended as an argument for the command.
on_picture_save wput ftp://USERNAME:PASSWORD@REMOTE SERVER %f