Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

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

Got problems with your B2 or B3? Share and get helped!
Post Reply
d_rylndr
Posts: 48
Joined: 31 Mar 2011, 14:20

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

Post 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...
Last edited by d_rylndr on 01 Apr 2011, 03:30, edited 1 time in total.
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

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

Post 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.
d_rylndr
Posts: 48
Joined: 31 Mar 2011, 14:20

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

Post 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...
Post Reply