Backup 6.0 - Updated 01/07/2014

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Click the "Backup" button and if you have either of the auto options ticked (startup or shutdown) then you'll get a message asking if you want to run the backup now - click "No". I thought this was better than adding an extra button. :)
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
MusicBringer
Posts: 622
Joined: Wed Oct 25, 2006 12:53 pm

Post by MusicBringer »

trixmoto wrote: I thought this was better than adding an extra button. :)
Sounds good to me, thanks trixmoto :)
cherryplinth
Posts: 38
Joined: Sat Feb 18, 2006 4:44 pm
Location: sunny California

Post by cherryplinth »

I have BackUp 4.6 installed on MM 2.5.5 under XP and the restore function works perfectly.

I also have BackUp 4.6 installed on MM 3.01.1127 under Vista. The backup utility creates the correct output files, but I cannot get the restore function to run. It just wants to open in WordPad for possible editing. How do I get the restore function to run under Vista?
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

This means that the "Open" command for the .vbs extension is mapped to WordPad. Try right-clicking on the file and then choose "Open With..." and select "Windows Scripting Host" - and maybe make this the default action as well.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
m_bojangles
Posts: 105
Joined: Fri Jun 11, 2004 8:22 pm

Post by m_bojangles »

Killjoy12 wrote:4.6 doesn't seem to be using the correct MediaMonkey.ini file for me on Vista with MM3.

In the GetIniPath() function, it seems like you would want to look in the db folder first, since the existing code check it last and it will always find a MediaMonkey.ini file in the programs folder. I don't think that's the one you want.


'try in database folder
If SDB.VersionHi > 2 Then
GetIniPath = Replace(SDB.Database.Path,"MM.DB","MediaMonkey.ini")
Else
GetIniPath = Replace(SDB.Database.Path,".mdb",".ini")
End If
If fso.FileExists(GetIniPath) Then Exit Function
Hi trixmoto,
My backup is also grabbing the wrong .ini file. I'm on MM3 on XP. Instead of looking in the folder where the db is, it is grabbing my old MM2.5 .ini file. I can't edit the path in the options panel for the script.
cherryplinth
Posts: 38
Joined: Sat Feb 18, 2006 4:44 pm
Location: sunny California

Post by cherryplinth »

Regarding the Restore Function note two messages above, I can now get the Restore Function to run by having it open in Windows Script Host. However, I now get an Access Denied message, Runtime Error No. 800A0046.

Error No. 800A0046 seems to be a fairly frequently reported error in this Forum that is commonly attributed to incorrect settings in the anti-virus program. I have tried running the restore function with Windows Firewall and AVG Virus Detection turned off, but I still get the same Access Denied error message.

A Google search quickly shows that Anti-Virus Program Settings are only one of many possible causes for Runtime Error No. 800A0046. I tried running down some of the other possibilities, but quickly got overwhelmed, given my limited experience with Vista.

At this point in time, I would say that with my relatively new and clean installation of Vista Home Premium, I cannot get the Restore Function of Backup 4.6 to run due to permission problems. It runs perfectly fine under XP.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

@bojangles - I have confirmed with the devs that my script is picking up the .ini file in the same way as MM. Are you sure that MM is using the .ini file you think it is?

@cherryplinth - Try right clicking on the Restore.vbs file and selecting "Run as administrator". If that doesn't work, you could also try running in "XP Compatibility mode" which should be in the properties somewhere I think.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
m_bojangles
Posts: 105
Joined: Fri Jun 11, 2004 8:22 pm

Post by m_bojangles »

trixmoto wrote:@bojangles - I have confirmed with the devs that my script is picking up the .ini file in the same way as MM. Are you sure that MM is using the .ini file you think it is?
I'm sure that MM3 is using the .ini file in ....\Local Settings\Application Data\MediaMonkey because I had to edit that to restore full functionality after trying out a beta script (http://www.mediamonkey.com/forum/viewto ... 821#123249)

The Last Modified date for the .ini file in the backup zips was also an obvious tip-off that the wrong one was being backed up. It's 1/3/2008 even though I've been modifying the real .ini lots of times since then as I roll out my scripts to MM3.

So I tried removing the old .ini file from the My Documents\My Music\MediaMonkey location. After doing that, your Backup script is now finding the correct .ini file in ....\Local Settings\Application Data\MediaMonkey. So it looks like the function you're using is trying the old 2.5 location first and then, if not finding anything, going to the MM3 location.

This might be important to point out to people that are upgrading from 2.5 to MM3 because installing MM3 right over 2.5 does not remove the old .ini file and leaves the user in this situation of backing up the wrong .ini file. After upgrading from 2.5 to MM3, users should manually move, rename or delete the old .ini file in My Documents\My Music\MediaMonkey.

(btw, trixmoto... just want to say "Thank you" again for all of these fantastic scripts that you create and continually maintain and improve.)
MusicBringer
Posts: 622
Joined: Wed Oct 25, 2006 12:53 pm

Post by MusicBringer »

m_bojangles wrote:... I can't edit the path in the options panel for the script.
Nor can I.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

You're not supposed to be able to edit this location as it's supposed to be the location of the file that MM is currently using. I'll talk again with the devs to try and ensure this is working as it should.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Killjoy12
Posts: 100
Joined: Mon Jun 11, 2007 11:33 pm

Post by Killjoy12 »

This is a fanatastic script, so I don't want this taken the wrong way, but in looking at the script code the order is:

Code: Select all

  'try in my music folder
  GetIniPath = SDB.MyMusicPath&"MediaMonkey\MediaMonkey.ini"
  If fso.FileExists(GetIniPath) Then Exit Function 

  'try in application folder  
  GetIniPath = SDB.ApplicationPath&"MediaMonkey.ini"
  If fso.FileExists(GetIniPath) Then Exit Function 
  
  'try in database folder
  If SDB.VersionHi > 2 Then
    GetIniPath = Replace(SDB.Database.Path,"MM.DB","MediaMonkey.ini")
  Else
    GetIniPath = Replace(SDB.Database.Path,".mdb",".ini")
  End If
  If fso.FileExists(GetIniPath) Then Exit Function
  

My understanding is that the application folder will always have a mediamonkey.ini file in it. So how will it ever use the one in the database folder?


m_bojangles wrote:
trixmoto wrote:@bojangles - I have confirmed with the devs that my script is picking up the .ini file in the same way as MM. Are you sure that MM is using the .ini file you think it is?
I'm sure that MM3 is using the .ini file in ....\Local Settings\Application Data\MediaMonkey because I had to edit that to restore full functionality after trying out a beta script (http://www.mediamonkey.com/forum/viewto ... 821#123249)

The Last Modified date for the .ini file in the backup zips was also an obvious tip-off that the wrong one was being backed up. It's 1/3/2008 even though I've been modifying the real .ini lots of times since then as I roll out my scripts to MM3.

So I tried removing the old .ini file from the My Documents\My Music\MediaMonkey location. After doing that, your Backup script is now finding the correct .ini file in ....\Local Settings\Application Data\MediaMonkey. So it looks like the function you're using is trying the old 2.5 location first and then, if not finding anything, going to the MM3 location.

This might be important to point out to people that are upgrading from 2.5 to MM3 because installing MM3 right over 2.5 does not remove the old .ini file and leaves the user in this situation of backing up the wrong .ini file. After upgrading from 2.5 to MM3, users should manually move, rename or delete the old .ini file in My Documents\My Music\MediaMonkey.

(btw, trixmoto... just want to say "Thank you" again for all of these fantastic scripts that you create and continually maintain and improve.)
[/code]
cherryplinth
Posts: 38
Joined: Sat Feb 18, 2006 4:44 pm
Location: sunny California

Post by cherryplinth »

@cherryplinth - Try right clicking on the Restore.vbs file and selecting "Run as administrator". If that doesn't work, you could also try running in "XP Compatibility mode" which should be in the properties somewhere I think.
As best as I can tell, the Run As Administrator and Program Compatibility Wizard options only apply to the Backup46.exe install program and not to the Restore.vbs script. So, these tools can help me install Backup 4.6, but they are not available in the right click menu or in the Properties Box or elsewhere when I want to run the Restore script. I still get the same Access Denied error if I reinstall BackUp 4.6 under one of the above administrator options. I still have virus detection and the Windows Firewall turned off. There still seems to be some other Vista feature that is causing the Restore script not to run.

In the interim, is it possible to manually restore the database, etc from the files that BackUp 4.6 created. In other words, can I cut and paste them from the backup location over to the locations where MM looks for them. That would be good enough for my purposes, as I don't expect to be using the Restore function that often.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Yes, all the script does is automatically copy-and-paste the files back to their original locations, so you can do this manually. You might need to run the Windows Script Host "as administrator" to get the script to run, I'll have a play and see if I can get it working.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
cherryplinth
Posts: 38
Joined: Sat Feb 18, 2006 4:44 pm
Location: sunny California

Post by cherryplinth »

Yes, all the script does is automatically copy-and-paste the files back to their original locations, so you can do this manually. You might need to run the Windows Script Host "as administrator" to get the script to run, I'll have a play and see if I can get it working.
I have verified that I can manually cut and paste the back-up files into their original MM locations. So I have a reliable means of backing up and restoring MM in Vista, even though Vista seemingly does not want me to run the vbs Restore script.

I should point out that I have not been able to run other vbs scripts in Vista, even though they all run fine in XP. I am sure there is some Vista setting that I am not aware of. I suspect there are going to be lots of other users with the same problem as my installation of Vista Home Premium is fresh out of the box, factory-installed by HP.

As usual, your scripts are superb.
easye
Posts: 25
Joined: Fri Dec 01, 2006 12:49 pm

Post by easye »

Killjoy12 wrote:This is a fanatastic script, so I don't want this taken the wrong way, but in looking at the script code the order is:

Code: Select all

  'try in my music folder
  GetIniPath = SDB.MyMusicPath&"MediaMonkey\MediaMonkey.ini"
  If fso.FileExists(GetIniPath) Then Exit Function 

  'try in application folder  
  GetIniPath = SDB.ApplicationPath&"MediaMonkey.ini"
  If fso.FileExists(GetIniPath) Then Exit Function 
  
  'try in database folder
  If SDB.VersionHi > 2 Then
    GetIniPath = Replace(SDB.Database.Path,"MM.DB","MediaMonkey.ini")
  Else
    GetIniPath = Replace(SDB.Database.Path,".mdb",".ini")
  End If
  If fso.FileExists(GetIniPath) Then Exit Function
  

My understanding is that the application folder will always have a mediamonkey.ini file in it. So how will it ever use the one in the database folder?
I've been having the same problem with this script (btw, I also love it :-D). In my case the problem was the following:

- I had MM 2.x installed on my PC
- When I upgraded to MM3 I installed this to a new folder \Program Files\MediaMonkey3
- I still am running both versions on my PC

Therefore when your script runs, it comes to the code:

Code: Select all

  'try in my music folder
  GetIniPath = SDB.MyMusicPath&"MediaMonkey\MediaMonkey.ini"
  If fso.FileExists(GetIniPath) Then Exit Function 
and finds the ini file from the version 2.x that is still on my PC.

So, maybe the check on version number should be earlier in the code. Also, there may be problems for some who have their DB installed to another location. From what I understand, you can store the MM.DB file somewhere else, but the ini file has to be in \Documents and Settings\username\Local Settings\Application Data\MediaMonkey

Hope this is helpful.
Post Reply