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?

  • 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 1 '18 at 18:02
  • 2
    Can you also add -v for verbosity? – Mugurel Jan 1 '18 at 18:03
  • OSX does not use GNU tools, which sometimes gives a different set of parameters. – casperghst42 Jan 3 '18 at 9: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 3 '18 at 10:13
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.