Backup MM Tracks v2.7 (01-11-08) [MM3]
-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
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.
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.
-
- Posts: 5559
- Joined: Wed Feb 07, 2007 11:07 pm
- Location: New Jersey, USA
- Contact:
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
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
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
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)
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)
New script:
Last.FM Node Now with DJ Mode!
Last.fm + MediaMonkey = Scrobbler DJ!
Tag with MusicBrainz ~ Get Album Art!
Tweak the Monkey! ~ My Scripts Page


Last.fm + MediaMonkey = Scrobbler DJ!
Tag with MusicBrainz ~ Get Album Art!
Tweak the Monkey! ~ My Scripts Page

-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
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.
' 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.
cool
Excellent script/idea tho, cheers!
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.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.
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.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.
Excellent script/idea tho, cheers!
New script:
Last.FM Node Now with DJ Mode!
Last.fm + MediaMonkey = Scrobbler DJ!
Tag with MusicBrainz ~ Get Album Art!
Tweak the Monkey! ~ My Scripts Page


Last.fm + MediaMonkey = Scrobbler DJ!
Tag with MusicBrainz ~ Get Album Art!
Tweak the Monkey! ~ My Scripts Page

-
- Posts: 5559
- Joined: Wed Feb 07, 2007 11:07 pm
- Location: New Jersey, USA
- Contact:
Thank you, it took a little getting used to having the buttons reversed.MoDementia wrote:Version: - 1.1
' Swapped Button Positions
No problem, I only found it because I happened to have 1 inaccessible track.MoDementia wrote:Sorry Nyn, I don't have any inaccessible tracks (but should have thought of it)
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
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
-
- Posts: 5559
- Joined: Wed Feb 07, 2007 11:07 pm
- Location: New Jersey, USA
- Contact:
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
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
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
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.
So that makes 3 waysTeknojnky 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.
I suppose I could put in a checkbox to backup files that are missing from the backup directory

-
- Posts: 5559
- Joined: Wed Feb 07, 2007 11:07 pm
- Location: New Jersey, USA
- Contact:
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
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
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
-
- Posts: 5559
- Joined: Wed Feb 07, 2007 11:07 pm
- Location: New Jersey, USA
- Contact:
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
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
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
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.
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.
-
- Posts: 5559
- Joined: Wed Feb 07, 2007 11:07 pm
- Location: New Jersey, USA
- Contact:
Yes, this works for me. This ensures I am getting all tracks backed up.
Nyn
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
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
-
- Posts: 5559
- Joined: Wed Feb 07, 2007 11:07 pm
- Location: New Jersey, USA
- Contact:
Mo: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.
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.


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
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.