PDA

View Full Version : How to synchronize music databases?



wayne325
2010-07-04, 06:45
I did several searches but couldn't find anything that points to what I'm
looking for.

I have a fairly normal paradigm for storing music files (I think). I have
an external USB drive that I use as my primary source and it's what my
Transporter is pulling files from when playing music.

But once in a while, I do a backup of my external drive onto another
external drive.

Obviously, after one has several hundred albums, it becomes basically
impossible to sync the two folders that hold the music on the two drives
as a manual operation of folder drag-and-drop.

So.... the question after all this explanation is: Is there any software
that allows me to bring one folder (and all it's subfolders and files) under
windows up to the same version as another folder?

I don't want to "delete and copy" because that becomes a very large operation
when there is a large volume of data such as music files.

Soulkeeper
2010-07-04, 07:00
Are you using Windows? If so, have a look at Windows' integrated backup utility.

http://www.microsoft.com/windowsxp/using/setup/learnmore/bott_03july14.mspx
http://www.microsoft.com/windows/windows-7/features/backup-and-restore.aspx

wayne325
2010-07-04, 08:51
Are you using Windows? If so, have a look at Windows' integrated backup utility.

http://www.microsoft.com/windowsxp/using/setup/learnmore/bott_03july14.mspx
http://www.microsoft.com/windows/windows-7/features/backup-and-restore.aspx

Hmmm the first link draws a blank screen for me. Weird. And it appears
to be for Windows 7 which I don't have. I'm running XP.

I tried the second link but it's not doing what I want. If you do a
"backup" if creates this backup file that you can use to restore later.
THat's not what I want. I want the folders/files that don't yet exist in
the backup location to be copied. There a half a dozen version control
programs that do this under UNIX.

Thanks though. Anyone else know of something?

peterw
2010-07-04, 08:53
Try SyncToy (http://www.microsoft.com/downloads/details.aspx?familyid=c26efa36-98e0-4ee9-a7c5-98d0592d8c52&displaylang=en) from Microsoft. It's pretty simple, but very useful.

pski
2010-07-04, 09:32
Hmmm the first link draws a blank screen for me. Weird. And it appears
to be for Windows 7 which I don't have. I'm running XP.

I tried the second link but it's not doing what I want. If you do a
"backup" if creates this backup file that you can use to restore later.
THat's not what I want. I want the folders/files that don't yet exist in
the backup location to be copied. There a half a dozen version control
programs that do this under UNIX.

Thanks though. Anyone else know of something?

Here is the first part of my "music.cmd" that I keep on my desktop:

T:
cd \music\paul\songs
G:
cd \music\songs
xcopy t:*.* /D /S /V
pause to review songs results

T:
changes the current drive to T: which is the source drive

cd \music\paul\songs
changes the current directory on t: and the .m4a's are in the directory structure here

G:
changes the current drive to the target (usb) drive the the music (folders) are in \music\songs

Since G: is the current drive, xcopy t:*.* copies everthing from the t: drive (starting in \music\paul\songs\) to the current drive/directory on G:

/D says copy only "newer" files
/S says to copy all files in all of the sub-directories as well (making identical copies of sub-folders, etc.)
/V says to verify the copy

P

JJZolx
2010-07-04, 10:12
There are a number of utilities that can sync directories. Synctoy has a nice GUI. Robocopy is similar, but a command-line only tool that can easily be used in a batch file or called from a script.

You don't need a typical backup program if you only want to mirror a directory. You don't really need old copies of files. BUT... make absolutely certain that the directory that you're mirroring is 100% healthy. For that reason, it's a bad idea to schedule a sync operation (daily, weekly, etc.) to run automatically. For instance, if you were to accidentally delete a bunch of files without noticing, then they'd be removed from the mirror copy as well.

wayne325
2010-07-04, 11:05
Try SyncToy (http://www.microsoft.com/downloads/details.aspx?familyid=c26efa36-98e0-4ee9-a7c5-98d0592d8c52&displaylang=en) from Microsoft. It's pretty simple, but very useful.

Ahhhhhhh, that's the stuff.

I downloaded it from the MS site and did a nice test.

The first time I used it to sync my music directories, it somehow decided
that about half the files had to be copied even though there were copies
of those files already at the destination. Weird.

THen I ripped a new CD, got the cover art from the web, and reran SyncToy
and it copied only that new album.

Thanks all, I appreciate the help. Looks like for me, SyncToy is it.

JJZolx
2010-07-04, 11:17
The first time I used it to sync my music directories, it somehow decided
that about half the files had to be copied even though there were copies
of those files already at the destination. Weird.


Have you made any changes to those files, such as in the tagging? It should copy newer versions of the same files over top older versions in the destination. It will most likely also copy any files that are of a different size, even if the file modification date hasn't changed.

I haven't used Synctoy very much, but you can probably also have it copy any file where the Archive file attribute is set, even if the date and size are the same. If (like myself and others) when you edit your file tags you preserve the modification date so that Squeezebox Server doesn't change the album order in New Music, the Archive flag on the file will still be set when the file is saved. You can use that to trigger copying of the newer file over the old one. The Archive file attribute is generally used by the operating system and backup programs to say 'this file has changed, it needs to be backed up'. When using the Archive attribute be sure to clear it afterwards. I'm guessing Synctoy can also do that.

wayne325
2010-07-04, 13:46
Have you made any changes to those files, such as in the tagging?

Well it looks like I get to do some more reading now. Honestly I don't
know if I tagged the files or not. I don't know what it is. I'm not
making any changes to the files manually. These are FLAC files we're
talking about that either I buy from HDtracks or they're ripped using EAC
from a CD collection that I'm slowly computerizing. I no longer have a
CD player after my Classe player packed it in (I don't want to replace it).

What would I have done to "tag" a file?

JJZolx
2010-07-04, 14:39
Well it looks like I get to do some more reading now. Honestly I don't
know if I tagged the files or not. I don't know what it is. I'm not
making any changes to the files manually. These are FLAC files we're
talking about that either I buy from HDtracks or they're ripped using EAC
from a CD collection that I'm slowly computerizing. I no longer have a
CD player after my Classe player packed it in (I don't want to replace it).

What would I have done to "tag" a file?

"Tags" are the metadata stored within the file such as title, artist, album, genre, year, etc. EAC, if you configure it to retrieve this information from an online database, will tag the files as you rip them. HDTracks undoubtedly tags the files for you as well. So you may have never had to tag the tracks yourself.

But many people often find it necessary to fix/add/remove fields after they've been ripped or downloaded. This is commonly done using a dedicated tag editor like Mp3tag (http://www.mp3tag.de/en/) (highly recommended) or Tag & Rename (http://www.softpointer.com/tr.htm). There is also software that integrates directly into Windows Explorer to allow you to modify tags there. As you use Squeezebox Server more you'll probably find situations where you'll want to change things such as artist name, even if it's for something a simple as fixing a typo.

wayne325
2010-07-04, 16:55
But many people often find it necessary to fix/add/remove fields after they've been ripped or downloaded. This is commonly done using a dedicated tag editor like Mp3tag (http://www.mp3tag.de/en/) (highly recommended) or Tag & Rename (http://www.softpointer.com/tr.htm). There is also software that integrates directly into Windows Explorer to allow you to modify tags there. As you use Squeezebox Server more you'll probably find situations where you'll want to change things such as artist name, even if it's for something a simple as fixing a typo.

Very cool. Thanks for that. I'll try out one or two of them. As you say
sometimes the original metadata makes my head spin, such as some album names
that are gynormous because somewhere, someone has decided that every artist
who played on the (compilation) album should be in the album title.

OK down I go another layer but I'll be happier with the result.

Thanks Jim.

spile
2010-07-05, 04:13
To backup what other posters have said, SyncToy 2.1 makes this sort of job really easy. Very flexible and works great with fixed or external drives for any sort of file.
Oh yes it is free :-)

Tom Hutcheson
2010-07-05, 08:58
I've used Beyond Compare for several years (it's not free but you can download and try) and it will do exactly what you're looking for.

Tom


Hmmm the first link draws a blank screen for me. Weird. And it appears
to be for Windows 7 which I don't have. I'm running XP.

I tried the second link but it's not doing what I want. If you do a
"backup" if creates this backup file that you can use to restore later.
THat's not what I want. I want the folders/files that don't yet exist in
the backup location to be copied. There a half a dozen version control
programs that do this under UNIX.

Thanks though. Anyone else know of something?