rsync: failed to set times on “xx”: Operation not permitted (1)
I use Rsync alot to make sure directories are all in sync with each other. It’s a great tool for development and distributing files over multiple machines with one command. Because it finds the differences, you don’t have to worry about whether you get the most recent version of a file copied to every machine you want it on. A single command can run an Rsync command to transfer to all the machines from a single source directory. Recently however, one of my machines was getting the two errors below.
rsync: failed to set times on “xxFileNamexx”: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1060) [sender=3.0.7]
I tried all sorts of permission combinations – 777 which you would think would make everything open to copy actually locked down the files even more giving a different permission error. The simple fix to both these errors is to make sure the owner of the files on both sides is the same. It simply goes off the name of the owner, which is odd to me because you’re not always guaranteed to have the same accounts on multiple machines, but I guess the makers of Rsync couldn’t anticipate everything.