Old 5th March 2005, 20:08   #1
desigi
Junior Member
 
Join Date: Mar 2005
Posts: 5
saving settings

hi,
i would like winamp to get an option to backup your settings like the lists in the media lib, preferences, ...

why? because i format my computer once a month normally, and i am spending half an hour to set all the settings from winamp
so you click a button and winamp creates a file, then i load it when i formatted and i have all my settings back

hope you can help me
desigi is offline   Reply With Quote
Old 6th March 2005, 01:56   #2
DJ Egg
Techorator
Winamp & SHOUTcast Team
 
Join Date: Jun 2000
Posts: 35,821
That'd be too easy...

winamp.ini, studio.xnf, gen_ml.ini, reg entries, backups etc
http://forums.winamp.com/showthread.php?threadid=158332

Backing-up Media Library database ratings/playcounts:
http://forums.winamp.com/showthread.php?threadid=182413
DJ Egg is offline   Reply With Quote
Old 9th March 2005, 21:35   #3
peaceofcake
Senior Member
 
Join Date: Sep 2003
Posts: 333
Would anyone here be able to provide me with a batch file to copy files, which could be run at window's shutdown?
peaceofcake is offline   Reply With Quote
Old 10th March 2005, 02:43   #4
DJ Egg
Techorator
Winamp & SHOUTcast Team
 
Join Date: Jun 2000
Posts: 35,821
Yeah, well it depends on where Winamp is installed
and what folder you want to create the backups in, heh :/
For this purpose, I'll create the .bat so it needs to be run from within the Winamp folder, ie. copy all the text in the "code" box below into Notepad, and save it as Type: "All Files" with a name of eg. WinampBackup.bat in the Winamp root folder.
code:
@echo off
md C:\Backup\Winamp\Plugins\ml
copy /Y Winamp.ini C:\Backup\Winamp\Winamp.ini
copy /Y studio.xnf C:\Backup\Winamp\studio.xnf
copy /Y winamp.bm C:\Backup\Winamp\winamp.bm
copy /Y plugins\in_cdda.cdb C:\Backup\Winamp\plugins\in_cdda.cdb
copy /Y plugins\gen_ml.ini C:\Backup\Winamp\plugins\gen_ml.ini
copy /Y plugins\ml C:\Backup\Winamp\plugins\ml
exit


This will backup the following:
winamp.ini
studio.xnf
winamp.bm (bookmarks)
plugins\gen_ml.ini
plugins\in_cdda.cdb (cddb database)
plugins\ml (folder)

The backup folder will be created at: "C:\Backup\Winamp"
with relevant subfolders (plugins\ml)

You can change the destination folder according to taste, eg.
md [enter "drive:\path\to\winamp\plugins\ml" of backup folder to create here]

Or you can manually create the backup folder/subfolder structure first and remove that line from the .bat file

Naturally, you'll then also need to edit the path of the destination folder for each line in the .bat file. You'll need to use "quotes" around the path if there's any spaces in it, eg.

copy /Y winamp.ini "C:\Documents and Settings\(user)\My Documents\Backup\Winamp\Winamp.ini"

Or you could even just create the backups in the Winamp dir, eg.

md Backup\Plugins\ml
copy /Y winamp.ini Backup\winamp.ini



The /Y switch forces automatic overwrite of existing files
You can change this to /-Y if you prefer to be prompted.

As to making it autorun on Winamp exit or Windows Shutdown, well that's another issue...
DJ Egg is offline   Reply With Quote
Old 10th March 2005, 06:28   #5
peaceofcake
Senior Member
 
Join Date: Sep 2003
Posts: 333
Thank you DJ Egg. I haven't put together the file yet, but when I do I'm just going to put it in my startup group and as an icon on the desktop.
peaceofcake is offline   Reply With Quote
Old 11th March 2005, 00:28   #6
DJ Egg
Techorator
Winamp & SHOUTcast Team
 
Join Date: Jun 2000
Posts: 35,821
ah, well you'll have to put in the full paths if the .bat file isn't in the winamp dir. Though you could leave the actual .bat file in the winamp folder and just put a shortcut to it on the desktop and in the start menu. Or whatever, heh.
DJ Egg is offline   Reply With Quote
Old 31st March 2005, 09:11   #7
desigi
Junior Member
 
Join Date: Mar 2005
Posts: 5
and what about copy the whole folder?

copy /Y * C:\Backup\Winamp\*

or something?
desigi is offline   Reply With Quote
Old 2nd April 2005, 21:24   #8
peaceofcake
Senior Member
 
Join Date: Sep 2003
Posts: 333
I dunno. I use the windows backup tool to make a weekly backup of my winamp folder and my media folder. This way the ml database is time coordinated with the media in the backup. I still run the script for just the ml and settings everyday at startup, but I found copying the entire winamp folder everyday took too long for my tastes.
peaceofcake is offline   Reply With Quote
Old 3rd April 2005, 08:41   #9
desigi
Junior Member
 
Join Date: Mar 2005
Posts: 5
it's not for my winamp folder actually...
i would like to use something like that for the 'my documents' folder
my hd crashes alot so i backup everything on another partition, the problem is, it never tells you 'next time you boot, i crash '
desigi is offline   Reply With Quote
Old 4th April 2005, 19:49   #10
peaceofcake
Senior Member
 
Join Date: Sep 2003
Posts: 333
Sorry I don't know how to do that. I just copy and pasted the script myself and changed the path to another drive. I figured out that the windows backup program is really hard to automate, so I went googling for an alternative and found one. Look for Cobian Backup 6. It seems really flexible, I have it set to simply copy my music folder, but it can also encrypt and compress your backups. I've got it set to run once a day at 1pm and it started the first backup without interupting me, aside from a non-intrusive notification over the windows clock. The thing that makes it better than the other ones I tried is that it can put the copying in the background rather than slowing down your computer.
peaceofcake is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Wishlist

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump