LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync from ubuntu to samba share does not work with -a option (https://www.linuxquestions.org/questions/linux-software-2/rsync-from-ubuntu-to-samba-share-does-not-work-with-a-option-724273/)

bhati 05-06-2009 08:23 PM

rsync from ubuntu to samba share does not work with -a option
 
Hi all,
I am trying to rsync some documents on to a samba share on a mybook world edition device. My source machine is a laptop running Ubuntu 9.04. However I keep getting various errors and try as I might I have not been able to get this to work.

I mounted the mybook share on my Ubuntu laptop using the following command -
sudo mount -t cifs 192.168.1.110:TEST test -o username=myusername,uid=1000,gid=1000

the mybook share on samba is defined as -

[TEST]
path=/shares/internal/TEST
read only = no
guest ok = no
valid users=myusername
write list=myusername

the rsync command I am using is -
rsync -avz ~/junk test/

where junk is a folder on my laptop that I would like to backup. I get the following message when I run the above command -

junk/
rsync: failed to set times on "/home/me/test/junk": Invalid argument (22)
junk/bar
junk/foo
rsync: mkstemp "/home/me/test/junk/.bar.iuj8as" failed: Permission denied (13)
rsync: mkstemp "/home/me/test/junk/.foo.PTOh4m" failed: Permission denied (13)

sent 75633 bytes received 54 bytes 151374.00 bytes/sec
total size is 439153 speedup is 5.80
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1058) [sender=3.0.5]



The biggest frustration is that I can mount these shares in an XP box and run synctoy and it works fine, but my linux boxes don't play well. I can copy but I can not rsync (with -a)

I don't know if it helps but uname -a on the mybook gives this -

Linux MyBook1 2.6.17.14 #1 PREEMPT Fri Jan 18 10:40:25 GMT 2008 armv5tejl GNU/Linux

Any help to resolve this would be greatly appreciated.

pentode 05-07-2009 03:20 PM

rsync only works on filesystems with hardlinks. So if the filesystem you are trying to copy to is FAT,NTFS (or HFS), I don't think it is going to work.

bhati 05-07-2009 08:48 PM

Well the target is some flavor of Linux (see uname output above) and the partition with the shared folder is ext3.

pixellany 05-09-2009 02:14 PM

Moved: This thread is more suitable in <---Software---> and has been moved accordingly to help your thread/question get the exposure it deserves.


All times are GMT -5. The time now is 05:32 AM.