I'm trying to sync a directory on my PC with a directory online, using the following command: rsync -avz `pwd` user@example.com:`pwd`
In other words, sync the current local working directory with the same directory on the server.
Before the sync, I have 12788 files locally and 11433 files remotely. After the sync, I still have the same number of files at each end.
rsync is not giving me any errors so what am I missing?
(If I expand `pwd` out to the full path I get the same results so that's not the problem. The path doesn't have any spaces.)
Mark Rogers wrote:
rsync -avz `pwd` user@example.com:`pwd`
In other words, sync the current local working directory with the same directory on the server.
Or, in reality, sync my local directory with a directory by the same name within the directory of the same name on the other server. Ie if my working directory is /foo/bar, sync its contents with /foo/bar/bar
What I need is:
rsync -avz `pwd`/ user@example.com:`pwd`
The problem with large directories is that it's each to miss something!