I recently migrated from Linux to Mac for my primary machine. I use rsync to update several static websites. Here's the command:
rsync -avzu —exclude=.git /Users/[me]/src/[site] [user]@[host]:/home/public
The command ignores the git folder and uploads other local changes to the website. The command works on Linux, but not on Mac.
On Mac, rsync registers which files need to be uploaded, but the changes aren't made on the server.
Any ideas?
Best Answer
Looks like slashes matter, this works:
rsync -avzu --exclude=.git /Users/[me]/src/[site]/ [user]@[host]:/home/public