Active Topics

 


Reply
Thread Tools
Posts: 171 | Thanked: 13 times | Joined on Nov 2009
#11
I though would rather control the syncing from the n900 and not the pc.

Such as have a script that checks x directories eg Music, and syncs only new or modified files.

I can then run it when I can as I'll always use the home wifi.

At the moment, the n900 does not seem to see the nas. I am thinking workgroup and the fact I have to supply credentials.

Any ideas, anyone with a script that may work?

Scott
 
Posts: 83 | Thanked: 34 times | Joined on Feb 2010 @ Poole, UK
#12
Curious to see if you have made any progress on this, I also want the same setup, I have all my media stored on network hard drives,a dn to sync it across without any other devices(i.e.PC) having to be involved would be great
 
Posts: 1 | Thanked: 0 times | Joined on Feb 2010
#13
If you're using *nix on your PC you might also want to try exporting your music directory via NFS and mounting it on the N900, and then syncing from it. No idea if that'll work as I don't have an N900 myself ( ) but it seems sound in theory..
 
Posts: 171 | Thanked: 13 times | Joined on Nov 2009
#14
I am having issues with gysnc and I really want to map the drive as this could cut out alot of the issues. I can then create a script or still use gsync.

Wizard Mounter is due to be released in the new few days and this allows the mapping of drives. Fingers crossed this will fix my issues.

Scott
 
Posts: 4 | Thanked: 0 times | Joined on Nov 2009
#15
I used rsync with SSH protocol to sync/backup my whole n900 system and then back up the whole stuff with GIT.

Not sure how it is done on a NAS though. But as long as SSH can be used to access it, rsync does a wonderful job.
 
Posts: 171 | Thanked: 13 times | Joined on Nov 2009
#16
Hi

Any chance you can give info on how you did this?

Grsync is just giving me errors that so far google has been unable to resolve for me.

You've taken a different approach and be keen to test that. I can ssh into my readynas.

Thanks

Scott
 
Posts: 171 | Thanked: 13 times | Joined on Nov 2009
#17
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

So the script should run at 9pm everynight.

I have not tested the cron job yet though but the script runs fine. Of course it needs further tweeking, especially if the cron job is incorrect.

I'll be adding pictures, backup files to get off the N900 onto my NAS later. Just got to get it fully working first.

Scott
 

The Following User Says Thank You to slewis1972 For This Useful Post:
Posts: 83 | Thanked: 34 times | Joined on Feb 2010 @ Poole, UK
#18
what tells the script to run at 9pm?
 
Posts: 171 | Thanked: 13 times | Joined on Nov 2009
#19
Ok, well sussed that cron is not installed. Luckily this thread solved my problem

http://talk.maemo.org/showthread.php...highlight=cron

Entered the following after typeing fcrontab -e

0 19 * * * /root/scripts/syncfiles.sh

and yippee tonight, all my music, podcasts synced.

Ok - got to sort some chown issues out, but its working.

Scott
 
Posts: 9 | Thanked: 11 times | Joined on Dec 2009
#20
Originally Posted by davidh101 View Post
what tells the script to run at 9pm?
there is a 21 there.

see
http://en.wikipedia.org/wiki/Cron
 

The Following User Says Thank You to simurg For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 14:35.