I have a Ubuntu 9.10 desktop machine that I use locally. I am setting up a server on a hosting provider. The server will run a very minimal version of the Ubuntu LTS server (only LAMP and an email server without a GUI).
I want to write a script (scheduled as a cron job) that will allow me to upload local files to the server. I want to use [SFTP] [1] for security reasons.
I'm new to shell scripts - but I think shell script is a way to do this (if I'm not mistaken).
Can someone provide me with initial pointers on how to start writing such a script in order to upload local files for FREE?
Ideally, I would like to compress the files before transferring (to save on the bandwidth)
[1]: http: // ssh file transfer protocol
source
share