Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Rockbox music sync
« previous next »
  • Print
Pages: [1] 2

Author Topic: Rockbox music sync  (Read 8023 times)

Offline w1ll14m

  • Member
  • *
  • Posts: 18
Rockbox music sync
« on: October 16, 2006, 01:00:03 PM »
I've created a little batch script for synchronizing my music to my Rock(i)Pod (5g)
it uses robocopy (from M$) to copy the files to the pod.

For the people who don't know robocopy:
It's a program for copying data from one location to another,
before it copies the files it checks for existing files that are identical.
The identical files won't be copied to the pod (saves a lot of time)
edited or replaced files will be synchronized. it's for windows
machines only so far :( I'll try to fix a *nix script to sync files to rockpod

I've made a little Autorun script (wich seems to be malfunctioning)
if anyone is interested let me know and I'll post a zip file with the contents.
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: Rockbox music sync
« Reply #1 on: October 16, 2006, 02:28:03 PM »
For *nix, I just use cp -ru
For Windows, I use(d to use) xcopy /e /u which seems to do what you have robocopy doing.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Rockbox music sync
« Reply #2 on: October 16, 2006, 02:46:19 PM »
Quote from: Yotto on October 16, 2006, 02:28:03 PM
For Windows, I use(d to use) xcopy /e /u which seems to do what you have robocopy doing.

That doesn't seem quite right... /u appears to force an update only:
Quote from: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true
/u : Copies files from Source that exist on Destination only

This reads to me as if it will never transfer any new music to the player, no?
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: Rockbox music sync
« Reply #3 on: October 16, 2006, 05:18:11 PM »
Sorry, haven't use Windows to copy lots of stuff in a while.  But I used to.  Maybe it was just xcopy /e and it just *knew* what to not copy. I don't remember.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Rockbox music sync
« Reply #4 on: October 16, 2006, 06:13:56 PM »
Quote from: Yotto on October 16, 2006, 02:28:03 PM
For *nix, I just use cp -ru
on *nix rsync is in most cases a better alternative. The following line has been mentioned several times (syncs to the player only):
Code: [Select]
rsync -avW --progress --size-only --delete /data/mp3/* /mnt/archos/
rsync is also available on windows.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline w1ll14m

  • Member
  • *
  • Posts: 18
Re: Rockbox music sync
« Reply #5 on: October 17, 2006, 06:11:06 AM »
There are many options to syncronize music to the device,
I wrote this for my self :) but if anyone can use / need the script for syncing a device or something else i can post it.

this script will check if the song/file exists, if the file is modified it will replace the file with the one from the 'source'
If files exist on the device but not in the 'source' the files will be deleted
(unless you change the option in userconf.bat)

thats the functionality I wanted :)

so if I can help someone with this script, just ask and i'll post it :)

kind regards William
« Last Edit: October 17, 2006, 06:14:42 AM by w1ll14m »
Logged

Offline mehtadone

  • Member
  • *
  • Posts: 28
Re: Rockbox music sync
« Reply #6 on: October 17, 2006, 06:46:02 AM »
I wouldnt mind a copy of it.

I have used a lot of the syncing program and find them too clunky for my linking.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Rockbox music sync
« Reply #7 on: October 17, 2006, 06:55:14 AM »
why don't you create a wiki page for that? The question comes around pretty regularly and attachments posted in the forums tend to get forgotten. Also, a wiki page could list various alternatives of syncing your music. Maybe such a page is also worth linking from the general FAQ page.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline w1ll14m

  • Member
  • *
  • Posts: 18
Re: Rockbox music sync
« Reply #8 on: October 17, 2006, 07:15:02 AM »
Well about a wiki, it's a nice idea but i don't know how to create a wiki!
maybe someone else can do it ..

But here is the attachment :)

there is one bug, the localpath and extpath can't handle spaces eg:
localpathx=c:\path\to music\
extpathx=to music\

the following would work like it's supposed to work:
localpathx=c:\path\tomusic\genre\
extpathx=genre\

The subdirectory's can contain spaces, that's no problem :)
http://rockbox.schoorl.nu/rockbox%20sync.zip
« Last Edit: October 17, 2006, 07:30:20 AM by w1ll14m »
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Rockbox music sync
« Reply #9 on: October 17, 2006, 07:31:46 AM »
Quote from: w1ll14m on October 17, 2006, 07:15:02 AM
Well about a wiki, it's a nice idea but i don't know how to create a wiki!
You don't need to create a wiki, the Rockbox website has one ;-) You just need to sign up for the wiki and create a new page (simply as accessing a new page that is nonexistant and use the "Create page" link)

Quote from: w1ll14m on October 17, 2006, 07:15:02 AM
there is one bug, the localpath and extpath can't handle spaces eg:
sounds like missing quotes to me ...
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Rockbox music sync
« Reply #10 on: October 17, 2006, 07:42:29 AM »
This looks promising... I like the fact that it sits on your player, rather than the PC; neat!

Quote from: bluebrother on October 17, 2006, 07:31:46 AM
Quote from: w1ll14m on October 17, 2006, 07:15:02 AM
there is one bug, the localpath and extpath can't handle spaces eg:
sounds like missing quotes to me ...

Yes, I think this will work:

localpathx="c:\path\to music\"
extpathx="to music\"
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline w1ll14m

  • Member
  • *
  • Posts: 18
Re: Rockbox music sync
« Reply #11 on: October 17, 2006, 07:45:39 AM »
Quote
sounds like missing quotes to me ...

Of course i've tried that one, but it couln't fix the bug, I'll be trying some new codes to fix it :)

Quote
Yes, I think this will work:

localpathx="c:\path\to music\"
extpathx="to music\"

you can also try to adjust the code, it's simple and its plain text.
the files you want to edito to fix this problem are:
x:\.sync\paths.bat
x:\.sync\sync.bat

but using quotes it realy messed some things up for me :)

About the wiki, i will try to make one right away :)
which category should i use ?
« Last Edit: October 17, 2006, 08:05:55 AM by w1ll14m »
Logged

Offline w1ll14m

  • Member
  • *
  • Posts: 18
Re: Rockbox music sync
« Reply #12 on: October 17, 2006, 08:12:08 AM »
hmmm i registered on the wiki,
but when i create a page, it tells me:
Access deniend...

I have to be in some usergroup to create pages on the wiki...:)

i've never used wiki's before, i think thats why i don't understand how a wiki works ;)
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Rockbox music sync
« Reply #13 on: October 17, 2006, 08:37:47 AM »
Quote from: As per the TwikiRegistration topic:

*Important note*: You will not be able to change anything in the Wiki directly after registering. You must first be added to the user group by a peer user. Join the #rockbox IRC channel, introduce yourself and ask for Wiki write permissions.

Click for #rockbox IRC channel via your web browser

Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline w1ll14m

  • Member
  • *
  • Posts: 18
Re: Rockbox music sync
« Reply #14 on: October 17, 2006, 09:08:21 AM »
thanx for the reply, i have missed it i think :)

well the new wiki is at
http://www.rockbox.org/twiki/bin/view/Main/RockboxSync

ofcourse still under construction!
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Rockbox music sync
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.098 seconds with 14 queries.