I would recommend using rsync which is a very powerful synchronization tool that you can call from a terminal window. (or from an Eggplant script with the shell() function)
I’ve attached an HTML document of the man page but basically the usage is
rsync options SourceLocation DestinationLocation
So here is a command that will connect to my home computer via SSH and sync all the files in the Images directories of my home “Documents/Eggplant Suites” folder to the same relative location on my local computer:
rsync --archive --compress --rsh=ssh --update --verbose --progress --relative jonathanhome:"Documents/Eggplant\ Suites/*/Images" ~
Rsync is great because it will only bother with files that have changed since your last sync, but you should use it with care and test your commands first because without the proper arguments it can remove files as well as update them.
- If you setup SSH to use a public key encryption like RSA then it will log you in without needing a password and you can set this command to execute from Eggplant or nightly with something like cron. We have instructions for doing this posted right here: Setting up RSA