Just another blog

Using Rsync

- Posted in Quick Tip by

I found myself needing a copy a folder from one server to another, but keeping all of the file attributes intact and not copying files already transferred, or deleting anything.

I came across this command:

rsync --progress -havz /var/www user@remotehost:/var/www

Which shows the progress as it goes, keeps the file attributes and doesn't copy anything that's already there.