- Working with FTP On the Command Line
- Turning It into a Shell Script
- Where to Go Next
Where to Go Next
There are three major ways that you can expand this script if you are so inclined: rewrite it to work with sftp, which is much more secure than ftp, rewrite it to create an archive tarball (as the open source community calls an archived and compressed snapshot of a directory tree) that's uploaded instead, or rewrite it to use a timestamp and upload only files that have been modified since the last time the script was run. I explore all three of these in my book Wicked Cool Shell Scripts, and you can peruse the scripts themselves online for free at http://www.intuitive.com/wicked/.