Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Rsync over smbfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JTHM
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2005
Posts: 115
Location: South Farms

PostPosted: Thu Dec 01, 2005 7:08 am    Post subject: Rsync over smbfs Reply with quote

I've got a music folder that I'd like to have ready access to on both my desktop and laptop. The folder's not that big, so I don't mind having two copies of it, but I don't want to bother having to syncronize them whenever I make a change, so I figured I could write a quick script using rsync and make it a cron job. The script itself works fine, but I'm having a few problems with rsync. It will actually sync the data fine, the trouble is that it syncs all the data every time. Here's the format I'm using

rsync -zrplt --delete ~/Music ~/Shares/Music

I'm mounting the share like this:

smbmount //win_comp/music_share ~/Shares/Music -o passwd=***,uid=***

The same format seems to work without problems when syncing two directories on the local FS, and I'm getting a warning about not being able to set set times when using smbfs. Does rsync use the most recent access time to determine whether or not to overwrite a file? Is so, is there any way that I could set it up to be able to change the access times? While this problem is a bit annoying, the script will be running at 5 in the morning anyway, and it only takes about 45 minutes to sync the whole folder, so it's not a huge deal. Would just like to know where I'm going wrong. Thanks in advanced
_________________
Any problem can be solved. You just need to throw enough time and ninjas at it.
Back to top
View user's profile Send private message
slam_head
Guru
Guru


Joined: 06 Jan 2003
Posts: 449
Location: New York City

PostPosted: Thu Dec 01, 2005 7:05 pm    Post subject: Reply with quote

I'm not sure about the rsync although I wouldn't worry about it if everything is getting sync'd up. I would consider mounting the remote filesystem using cifs instead of smbfs. smbfs is not longer under development and has several problems which are not present in cifs. To use cifs make sure the cifs modules is built into the kernel(it right next to smbfs in the config) and mount the volume like this:

Code:
mount -t cifs //win_comp/music_share ~/Shares/Music -o passwd=***,uid=***
Back to top
View user's profile Send private message
JTHM
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2005
Posts: 115
Location: South Farms

PostPosted: Fri Dec 02, 2005 4:09 am    Post subject: Reply with quote

Yep, switched it to mount the share as CIFS and it works great now. Thanks a ton.
_________________
Any problem can be solved. You just need to throw enough time and ninjas at it.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20588

PostPosted: Fri Dec 02, 2005 4:10 am    Post subject: Reply with quote

Moved from Other Things Gentoo
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum