View Single Post
Posts: 83 | Thanked: 34 times | Joined on Feb 2010 @ Poole, UK
#22
Originally Posted by slewis1972 View Post
Ok -heres an update as it may help others.

I have successfully, finally, mapped my n900 to my readynas. Key issue was cifs not starting at bootup. So got it starting with:

depmod -a
Code:
echo start on startup > /etc/event.d/cifs
echo exec modprobe cifs >> /etc/event.d/cifsbefault

At this point I created a folder called "NAS" in /media

I have then created a scripts folder in /root/scripts as I was getting permission issues where else I put it.

In the script I have

#!/bin/sh
set -x
#mount NAS
mount -tcifs //xxxxxxxxx/media /media/NAS -ouser=xxxxxxxx,pass=xxxxxxx,ip=xxxxxx
#Transfer podcasts
rsync -r -t -o --ignore-existing --remove-sent-files /media/NAS/Music/podcasts /home/user/MyDocs/.sounds/Podcasts/
#transfer Music
rsync -r -t -o --delete --ignore-existing /media/NAS/Music/Music/ /home/user/MyDocs/.sounds/Music/

I then placed this line in cron.d. Not sure its the right one but believe it is:

0 21 * * * /root/scripts/syncfiles.sh
Ok, I'm sorry for being such a noob, but is it possible that you could explain what each line does, I am assuming that the lines with a # at the front are comments.

what about the depmod -a and the 2 lines with echo on them.

I have tried mounting the network drive, but am unable to do so, it says No Such Device.

Does the username need to be in the format DOMAIN\user, or just user?

What, if any apps do I need to install prior to trying this?