View previous topic :: View next topic |
Author |
Message |
JTHM Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/66231087142ed9a0e66ede.jpg)
Joined: 31 Jul 2005 Posts: 115 Location: South Farms
|
Posted: Thu Dec 01, 2005 7:08 am Post subject: Rsync over smbfs |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
slam_head Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/12041246593e397dd37c54c.gif)
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Thu Dec 01, 2005 7:05 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
JTHM Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/66231087142ed9a0e66ede.jpg)
Joined: 31 Jul 2005 Posts: 115 Location: South Farms
|
Posted: Fri Dec 02, 2005 4:09 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
pjp Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/1154772887439692d88303b.jpg)
Joined: 16 Apr 2002 Posts: 20588
|
Posted: Fri Dec 02, 2005 4:10 am Post subject: |
|
|
Moved from Other Things Gentoo _________________ Quis separabit? Quo animo? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|