Syncing files and folders from local to remote;

rsync -Pvrax media/ <user>@<host>:public_html/media

So basically sync ./media/ to the remote directory public_html/media.

See a list of the options used (-Pvrax) here.

The / at the end of media is important. Leaving it off will create another media directory inside the remote media directory resulting in media/media.

  • rsync

Like this post? Share it :)

Related Posts