1

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?

mwfogleman
  • 31
  • 2
  • 1
    Timestamps are likely off between the systems and `-u` is causing it to skip some files because they look newer on the destination. – Brian Jan 01 '18 at 18:02
  • 2
    Can you also add `-v` for verbosity? – Mugurel Jan 01 '18 at 18:03
  • OSX does not use GNU tools, which sometimes gives a different set of parameters. – casperghst42 Jan 03 '18 at 09:43
  • @casperghst42: `rsync` is the same on all platforms, because there is only one implementation (what you say is correct for tools like `find` etc. which indeed have differences between the GNU and BSD implementations). – Sven Jan 03 '18 at 10:13

1 Answers1

0

Looks like slashes matter, this works: rsync -avzu --exclude=.git /Users/[me]/src/[site]/ [user]@[host]:/home/public

mwfogleman
  • 31
  • 2