Rsync is a simple tool for synchronizing two directories while minimising data transfer by only transferring the differences.
I use the following script to automatically sync the files on my USB drive to my home directory on a remote server and then safely remove the drive. The files are transferred over SSH, and so the entire transfer is secure. I also use public key authentication to ensure I do not require a password to log into remotehost.
Read more →