Rsync looks interesting!
Posted January 17, 2007on:
have you considered using rsync? i just set this up yesterday on my mac so i have a single command to sync a whole directory onto a server on my lan.
rsync -av localwebdir/ user@server:/var/www/
rsync also has the benefit of only transferring files that have modified, so if you have 100+ web pages/images/etc and you only update 2 or 3 pages, then only those 2 pages get sent to the server.
one thing to note with this is that the /var/www/ directory and subdirectories must be owned by the user that is logging in via rsync. since rsync uses ssh for its connection, you can use public/private key login with ssh from your local box and not have to type a password when updating the web folders on the server!
read “man rsync” for more info on the exact syntax of the command.