Posts Tagged ‘rsync’

Still moving stuff around… rsync

Saturday, April 2nd, 2011

Hmm… I get the feeling that I spend a lot of time moving stuff around…

In a previous post I talked about creating a load of image thumbnails by running a custom script. Each time you added a new image to the directory, it would be necessary to run the script again.

Suppose that the images and thumbnails are being kept on a remote server – transferring the images from your local machine to the remote machine using scp might be one way you could do it, but if what you really want to do is have your remote folder in sync with your local folder, then it rsync is probably the tool you’re after.

1
rsync -rv local_image_folder/ you@your_remote_server:~/path/to/remote/image_folder

now you only have to worry about keeping your local folder in order, and your remote one will be happypants.