![]() |
2010-02-17
, 21:18
|
Posts: 171 |
Thanked: 13 times |
Joined on Nov 2009
|
#21
|
![]() |
2010-02-19
, 20:50
|
Posts: 83 |
Thanked: 34 times |
Joined on Feb 2010
@ Poole, UK
|
#22
|
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
![]() |
2010-02-19
, 21:44
|
Posts: 171 |
Thanked: 13 times |
Joined on Nov 2009
|
#23
|
![]() |
2010-02-19
, 22:15
|
Posts: 83 |
Thanked: 34 times |
Joined on Feb 2010
@ Poole, UK
|
#24
|
![]() |
2010-03-31
, 22:49
|
Posts: 42 |
Thanked: 123 times |
Joined on Feb 2010
|
#25
|
![]() |
2013-09-15
, 14:29
|
Posts: 175 |
Thanked: 210 times |
Joined on Mar 2013
|
#26
|
when I run rsync without the --ignore-existing switch on N900, all files I am trying to synchronize are retransfered, even the source and destination files are the same. With the switch it runs quickly but I don't think old files on N900 will get updated.