Skip to main content
Question

rsync scripting help - changing owner

  • January 22, 2020
  • 1 reply
  • 4 views

Forum|alt.badge.img+17

Hi all,
Trying to get a script put together to move data from one user account to a different one, and critically, update the file owner to the new user. I must be missing something silly, so hoping you all may have been down this road already!

So, I wanna do this:

rsync -rv —chmod=user2+rwX /Users/user1/Desktop/ /Users/user2/Desktop/

What am I doing wrong? Note I want to move the contents of Desktop, and not the whole folder...

Thanks!
Matt

1 reply

Forum|alt.badge.img+17
  • Author
  • Valued Contributor
  • January 22, 2020

Okay, so you can't use the --chmod= to change the user - this should have been obvious to me (chmod vs chown) lol :)