Backup MM Tracks v2.7 (01-11-08) [MM3]

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia
Contact:

Post by MoDementia »

You can run it on your whole library again, it will only copy files that have changed since the last backup so it should run much much faster.

Another way is to set up and auto playlist with files modified since last back up and you can just run it on the tracks in the playlist.

Yes you have to run it manually.
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Post by nynaevelan »

Mo:

The script errored out on a dead link, is there any way for the script to check to ensure the track is accessible and if it is not to skip past it and/or add some kind of log or confirmation list on what tracks were skipped? BTW, good job I am definately going to add this to my list of weekly cleanup scripts.

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

Pretty cool script!

A few things tho:

- the OK/Cancel buttons are reversed from normal windows standard (OK should be on left, cancel on right)
- I'd recommend putting some more SDB.ProcessMessages in the BackupSelected sub, particularly after the iter.next lines (any heavy processing or often repeated loop is good idea for SDB.ProcessMessages within the loop)
- I made a test back up folder, then I cleared the folder and now it does not seem to check existing files missing so it does not attempt to back them up... so it is assuming your existing backup is correct (which may or may not be the case)
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia
Contact:

Post by MoDementia »

Version: - 1.1
' Swapped Button Positions
' Skipped Inaccessible Tracks
' Added Tabs to Log


Sorry Nyn, I don't have any inaccessible tracks (but should have thought of it)

@ Teknojnky
I have added some more SDB.ProcessMessages as suggested but I doubt it will make any difference, Its the copy file that is making it not respond the rest of the loop is very quick.

I haven't fixed rewiting the file if its deleted from the backup.
This suggests you need a backup of your backup :)
I'll keep thinking about it but in the mean time you can
1. Uninstall and click yes to remove data (will do a full backup again)
2. Change a custom field of the affected files and change it back then run the script on those files.

EDIT make sure it is 1.1 that is installing I think I have experienced getting cached files and images before.
I had to refresh the front page to update the image.
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

cool
MoDementia wrote:@ Teknojnky
I have added some more SDB.ProcessMessages as suggested but I doubt it will make any difference, Its the copy file that is making it not respond the rest of the loop is very quick.
Nod, but consider that long processes such as file copies could be blocking other important things from running, so by adding sdb.processmessages you are giving MM cpu cycles to process any other needed threads.
I haven't fixed rewiting the file if its deleted from the backup.
This suggests you need a backup of your backup :)
I'll keep thinking about it but in the mean time you can
1. Uninstall and click yes to remove data (will do a full backup again)
2. Change a custom field of the affected files and change it back then run the script on those files.
I found it easiest to simply 'sync tags' (control s) before backing up, albeit that may not be ideal when dealing with mass amounts of tracks.

Excellent script/idea tho, cheers!
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Post by nynaevelan »

MoDementia wrote:Version: - 1.1
' Swapped Button Positions
Thank you, it took a little getting used to having the buttons reversed.

MoDementia wrote:Sorry Nyn, I don't have any inaccessible tracks (but should have thought of it)
No problem, I only found it because I happened to have 1 inaccessible track.

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Post by nynaevelan »

MO:

If there are tracks within the backup which you want to get rid of and re-backup, is there a way to get rid of them without modifying the track? I had a few that had the links but the backup files were not in the secondary location, I tried to rerun the script on those tracks but it didn't back them up. So, I had to use Bex's SQL viewer to delete the id's from the TrackBackup table and then rerun the script. Is there any easier way to do this?

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia
Contact:

Post by MoDementia »

MoDementia wrote: 1. Uninstall and click yes to remove data (will do a full backup again)
2. Change a custom field of the affected files and change it back then run the script on those files.
Teknojnky wrote: I found it easiest to simply 'sync tags' (control s) before backing up, albeit that may not be ideal when dealing with mass amounts of tracks.
So that makes 3 ways

I suppose I could put in a checkbox to backup files that are missing from the backup directory :)
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Post by nynaevelan »

A checkbox would be good. I would rather not do either option 1 or 2 because both of them would change the timestamp, which would cause the autosync for my Zen to have to be updated, which I do not want to do if nothing has really changed with the tracks.

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia
Contact:

Post by MoDementia »

' 16-04-08 Version 1.2
' Added Checkbox to check for missing backup files.
' Renamed the Log File Year-Month-Day........

Done :)

EDIT Fixed the Log Filename a bit :)
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Post by nynaevelan »

MO:

I am really liking this script, the only thing it is missing is an automation process, kinda like Trixmoto's Backup script, say something that would backup as MM is closing.

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia
Contact:

Post by MoDementia »

How does this sound?

Another checkbox "Backup all changed Tracks on Shutdown" (I hate doing Option sheets :( )

When MM shuts down you need to confirm the backup (Knowing that the PC will stay on for as long as it needs to (from mins to hours) or cancel it (immediate PC shutdown/restart)

Although this will skip the move/deletion confirmation, if your happy that it is doing all the right things so far, then it shouldn't be a problem.
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Post by nynaevelan »

Yes, this works for me. This ensures I am getting all tracks backed up.

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Post by nynaevelan »

MoDementia wrote:How does this sound?

Another checkbox "Backup all changed Tracks on Shutdown" (I hate doing Option sheets :( )

When MM shuts down you need to confirm the backup (Knowing that the PC will stay on for as long as it needs to (from mins to hours) or cancel it (immediate PC shutdown/restart)

Although this will skip the move/deletion confirmation, if your happy that it is doing all the right things so far, then it shouldn't be a problem.
Mo:

You do not need to add this feature if you do not want to, I have setup a custom node to list all the tracks that are not in the backup table, so my needs are met. Thanks for a great script and all your assistance. :P :D

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

That in itself might be a nice addition; a "Files to Edit" node listing tracks not backed up!
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.
Post Reply