Help with rsync errors to a afp mounted nas
I'm trying to run an rsync based backup from from my laptop to a (synology) nas but keeping geting some error messages. I have a DS409+, and my laptop is a macbook running 10.6.2 Snow Leopard. The nas is mounted on /Users/Shared/Nas using afp. Rysnc is version 3.06 on both machines and I have the same user created on both machines. The command I'm using is :
/usr/local/bin/rsync -aNHAXx --protect-args --fileflags --numeric-ids --force-change --log-file=$RSYNC_LOG /Users/Shared/Local/text/ /Users/Shared/Nas/archive/text
When I look at the log file I see chown errors along the lines of :
[1447] rsync: chown "/Users/Shared/Nas/archive/text/receipts/hotel" failed: Operation not permitted (1)
for every file. At the very bottom I get :
[1447] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]
However, I lack the technical know how of how to get past this. Could anybody help, please?
Thanks
macbook, Mac OS X (10.6.2)