INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Sync Playlists between two Servers  (Read 2166 times)

altsouza

  • World Citizen
  • ***
  • Posts: 138
Sync Playlists between two Servers
« on: March 29, 2015, 11:46:15 am »

Hi,

I have two Pc's with identical Music Files I use in my Main House and my Beach House.
In the Winter I take back the "Beach House Pc"  to my Main House. I sync the Files using a Windows Program (Allway Sync).
It would be great if I could Sync the Playlists I create in my Main City House to the Beach House unit.
I tried the Library Sync Function, but nothing happens.
Let me know

Thanks

Antonio
Logged
Nuc > Cambridge Audio Cxn Streamer > Cambridge 851e Pré
Parasound A21 Amp > Nordost Cable > Kef R300 Speaker
Prog Rock Fan (Yes.....)

Arindelle

  • Citizen of the Universe
  • *****
  • Posts: 2772
Re: Sync Playlists between two Servers
« Reply #1 on: March 29, 2015, 02:18:14 pm »

Library sync is when you share a server library. Sounds like you have t completely separate setups.

You can always just export the playlist into an mpl extension and just  import them. Right click on the playlist; the only issue is that I don't think there is away to bulk export, so you have to do one at a time. (presume thta your path setups are the same btw.

Or you can choose one of the pCs to be the master and restore the library backup of that on the 2nd machine. But don't think that woudl suit if both machine's libraries have been modified.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Sync Playlists between two Servers
« Reply #2 on: March 29, 2015, 03:19:42 pm »

Two questions:

1. Do both PCs see the files in the same disk locations?  Meaning, does each media file have the same drive letter, path, and filename on the City House PC and on the Beach House PC?

2. Does, or can, the City House PC stay on and online 24/7?

If the answer to question #1 is yes, or you can alter it to make it into a yes, then you can accomplish what you want with relative ease.  The best method probably depends on the answer to question #2, and your preference.

Manually Sync Changes

If you basically abandon the City House PC (shut it down and turn it off) when you switch to the Beach House, then this is probably the simplest solution.  Basically, you're going to make one PC the "master library" and only use it for a period of time, switching back and forth by restoring a Library Backup.

0. Sync the media files from the City House PC to the Beach House PC (as you are doing now with a file sync tool).
1. Back up MC's Library on the City House PC when you are getting ready to go to the Beach House.
2. Restore the backup onto the Beach House PC.
3. Go to the Beach and use it.
4. When you return home, back up MC's Library on the Beach House PC.
5. Boot the City House PC back up and restore the backup onto it.  Re-syncing files back the other way as well if needed.
6. Shut down the Beach House PC until next year.

Use the Sync Library Tool

MC's Library Manager has a tool that can be used to sync two MC Libraries over the network, including making copies of files as is needed.  This will work best if the two copies of MC are on the same LAN (as otherwise copying the files back and forth will be slow as molasses).  I don't have a lot of experience using this tool, but I can explain the basic concepts.

1. Each computer has its own Library.  It will probably also work best, like question #1 above, if the files on both are in the same spot (though I think it can somewhat manage this for you, depending on how you have it set up).
2. At least one of the PCs, and probably both, will need to have MC's Media Network features enabled.  Whichever one you want to sync the information FROM (the one that has the "good" information you want to bring over) needs to have it enabled, anyway.  Copy down this PC's Access Key.  You also need to enable Authentication if you want the Sync to be able to modify this copy of the Library.
3. Start up the PC where you want to sync the information TO, and get it on the network.  Before doing anything else, open MC and make a Library Backup.  That way you can "undo" in case you mess something up.
4. Use the Library Manager to select your Library, and then click the Sync Library button.
5. Enter the Access Key you recorded in step 2 in the Library Server box at the top of the Sync Library dialog.
6. Under Actions, if you check Merge Playlists, it will merge the Playlists for both copies of MC (making them match on both PCs).
7. If you want MC to sync the files (and make them match on both PCs as well) check Merge Files and make sure you set the File Locations options carefully.  It uses the settings under Options > File Locations by default.  If Merge Files is unchecked, then the File Locations "section" of the dialog is ignored (if you just want it to merge the playlists).
8. You probably want Conversion set to Don't convert audio.
9. Click OK when you're ready to proceed, and it will do the merge.  If Merging Files, it can take a long time.

Note: I don't use this, so I'm going by a few tests and limited experience.

Make the City House PC the Server and Use the Beach House PC as a Client

This is almost certainly the way I'd recommend you do it, but it depends on having an always-on PC at the City House.  It also could be troublesome if your internet connection isn't stable or reliable at both locations, or if your PC might crash at the City House (and it is a pain to drive back and fix it).

But, assuming you can do it in a reasonable fashion (it isn't crazy-far to go back to the City House, or you go back home regularly anyway, and can remotely access the PC there via something like Team Viewer if needed anyway), then this would probably be the best option.

1. Set up the City House PC as your Media Center "server" (enable Media Network).
2. Enable Tools > Options > Media Network > Authentication.  This is required in order for the Beach House PC to be able to make changes to the Library (tag files, create Playlists, etc).
3. Set up Port Forwarding on your home Router or Gateway device, so that requests on your public IP address's "MC Port Number" always get forwarded to the City House PC.  You'll need to look for instructions for your particular network device.  MC's default port is 52199, but it can be set to whatever you want via Tools > Options > Media Network > Advanced > TCP Port.
4. You'll probably also need to open up the port in the Windows Firewall.
5. Copy down (or email to yourself) the Access Key from the City House PC.
6. On the Beach House PC, open MC and add a new Library via the Library Manager.
7. Choose Library Server as the type and enter the Access Key from step 5.
8. Click OK to load it.  Enter the Username and Password you set when prompted.

Now, when you launch MC on the Beach House PC, it will connect to the City Home PC and use its copy of the Library for everything.  It won't have to stream you the files because they're stored locally in the same exact spot (so MC will automatically use those instead).  This way, since it is using the Library served by your City House PC, the two will never get out of sync in the first place.  The big downside to this approach is that you can't really import new files from the Beach House PC.  To import new files, you'll have to manually copy them over to the City House PC somehow, and let Auto-Import pick them up.  There are also some limits on things you can do or change from the Client Side (you can make new Playlists and Smartlists, but you can't alter the Media Views in your Library from a Client).  You also can't use Rename, Move, and Copy Files from a client copy of MC.

What will work best for you will depend on your particular circumstance.  A hybrid approach might be the best option as well.  On my Laptop, I access my Home Server's Library via Media Network most of the time, but I also have a Local Library on the laptop for when it can't get online, or when I want to do more "advanced" library management (and I update this periodically by using the Manual Sync method described first above).
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

altsouza

  • World Citizen
  • ***
  • Posts: 138
Re: Sync Playlists between two Servers
« Reply #3 on: March 29, 2015, 04:35:44 pm »

Thanks both Arindelle and Glynor.

Arindelle, thank you for your idea, but I need a more automatic way to do that. There are too many playlists!!!!

Glynor:
Yes, both Pc's sees the same drive letters (c:\music) , but the files are in each's Pc's Hdd's.(two sets of files)
No internet in the Beach House

Manually Sync Changes
Yes, I almost abandon the Beach House in the Winter, but sometimes I use it in my House's "Second Audio System".
I will try this method.

Use the Sync Library Tool
I was trying to use this method, I did all the steps, but nothing happens.
I need to use this method, as I am going to build a third PC, so  will be easier to auto sync all these Pc's.
Any aditional info on this method is welcome.

Make the City House PC the Server and Use the Beach House PC as a Client
My Beach house is on an island, the internet is very bad!!!

So the Sync Library Tool is the best way to go.

Thanks

Antonio







Logged
Nuc > Cambridge Audio Cxn Streamer > Cambridge 851e Pré
Parasound A21 Amp > Nordost Cable > Kef R300 Speaker
Prog Rock Fan (Yes.....)

altsouza

  • World Citizen
  • ***
  • Posts: 138
Re: Sync Playlists between two Servers
« Reply #4 on: March 29, 2015, 05:13:26 pm »

I was looking ate the Folder Names, the City House is c:\music   and the Beach house is c:\musica (with "a" at the end).
Can I still use the Backup\Restore method??

Antonio
Logged
Nuc > Cambridge Audio Cxn Streamer > Cambridge 851e Pré
Parasound A21 Amp > Nordost Cable > Kef R300 Speaker
Prog Rock Fan (Yes.....)

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Sync Playlists between two Servers
« Reply #5 on: March 29, 2015, 05:43:18 pm »

The best bet would be to pick one standard and stick to it (probably keep the City House setup, and move the files on the Beach House PC to fix them).
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

michaelmcclatchy

  • Recent member
  • *
  • Posts: 37
Re: Sync Playlists between two Servers
« Reply #6 on: April 04, 2015, 10:28:32 am »

Hi, I have the same situation...
My remaining challenge is with my weekend house where I don't want to re-analyze all of my flac/iso files again. Where does all that JRiver 20 meta data reside?
Thanks Michael
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2664
Re: Sync Playlists between two Servers
« Reply #7 on: April 04, 2015, 11:19:16 am »

Hi, I have the same situation...
My remaining challenge is with my weekend house where I don't want to re-analyze all of my flac/iso files again. Where does all that JRiver 20 meta data reside?
Thanks Michael

File->Library>Backup Library

Then do a restore library at your weekend house.
Logged

altsouza

  • World Citizen
  • ***
  • Posts: 138
Re: Sync Playlists between two Servers
« Reply #8 on: April 04, 2015, 10:03:19 pm »

Finally i got it.
I synced the two Pcs using Lib Sync Tool.
There are some Playlists that does not sycn. They show up, but empty.
For now I only sync playlists, not audio files.
Thanks
Antonio
Logged
Nuc > Cambridge Audio Cxn Streamer > Cambridge 851e Pré
Parasound A21 Amp > Nordost Cable > Kef R300 Speaker
Prog Rock Fan (Yes.....)
Pages: [1]   Go Up