Page 1 of 1

B3 samba shared, "failed to set time" [SOLVED]

Posted: 31 Mar 2011, 14:48
by d_rylndr
I've just got my B3 which I'm going to use as a new work file server.
First thing to do is copy all files from old file server which I'm retiring now.

Created a new folder in /storage called "WORK", permissions is "Read and Write" for all.
Then added the share in fstab at a client machine, created a WORKny folder in /media/ with permissions 777
fstab entry:
//192.168.10.1/storage/WORK /media/WORKny smbfs noauto,timeo=14,intr,_netdev 0 0

Mounted the share and started copying:
rsync -ra --delete --progress /media/WORK/* /media/WORKny/

Everything seems to go alright, rsync is churning through the files with an occational error message which I'm not paying much attention to. Use to be a file here and there which is for some reason not copying.

Then after a day of rsyncing I checked the B3-share. I says it contains about 300Kb of files... Looking through the share there is an empty folder structure, All folders from the original is created but they are all empty...

Checking he rsync error message I got, for every folder:
rsync: failed to set times on "/media/WORKny/folder/target-folder": Operation not permitted (1)

What is going on?!
According to rsync output it does look like the files were being copied but none actually were...

Re: B3 samba shared, "failed to set time"

Posted: 31 Mar 2011, 15:29
by RandomUsername
Probably something to do with setting the mtime with Samba. There is a flag somewhere to change the precision of the mtime.

However, my advice is to abandon using rsync over samba for large transfers. It's sloooooooooooow and doesn't take advantage of rsync's incremental transfers. Rsync over ssh is the way forward.

Re: B3 samba shared, "failed to set time"

Posted: 01 Apr 2011, 03:29
by d_rylndr
Figured it out!

It all was because I wasn't owner of the mounted partition. Had to add uid=username to the fstab entry.

Yes, I'll have to look into rsync over ssh...