Jump to content

urpmi backup?


SoulSe
 Share

Recommended Posts

I'm sure I could find this answer by googling, but I prefer asking here because it leads to conversations, arguments and, finally, a better tweaked answer. :wink:

 

How do you backup urpmi sources so that if you re-install you don't have to waste time adding them again? Is as simple as backing up the hdlist files or what?

Link to comment
Share on other sites

Thanks anon, but I don't think you understood my question. I know how to install them. I want to know how to BACK THEM UP.

 

I have a bad Internet connection and some of the sources can take up to an hour or more to add, so I don't want to have to do that everytime.

Link to comment
Share on other sites

In fact this looks like the thread in question:

http://www.mandrakeusers.org/viewtopic.php...highlight=urpmi

Hmmm.... not really.

 

Well, if I break the urpmi system down, it basically consults the .cfg file for a list of sources and then searches through the hdlist files for the required package, its source and its dependancies and then downloads and installs them.

 

So I imagine that if I backup the hdlist files and the urpmi.cfg file and put them back after an install then that should be the answer?

 

Anyway, I'm sure DragonMage will solve this one for me, he seems to be the resident urpmi guru :wink:

Link to comment
Share on other sites

Anyway, I'm sure DragonMage will solve this one for me, he seems to be the resident urpmi guru  :wink:

 

Who? Me? Nah.. I usually just brute force the method.. :)

 

Anyway, the source list is stored in /etc/urpmi/urpmi.cfg while the hdlist is stored in /var/lib/urpmi/hdlist.<name of mirror>.cz and /var/lib/urpmi/synthesis.hdlist.<name of mirror>.cz

 

If I were you however, I'll backup the entire /var/lib/urpmi and /etc/urpmi directory. Another thing is by the time you reinstall, you may need to redownload the hdlist again just to make sure you are up to date with security patches, bug fixes, and add-ons. I usually just backup my whole linux partitions with acronis trueimage (usually just take me 3 cdrws and booting to windows for about half an hour, much safer that way) Now if there is a linux version of a backup that system that can backup to cdrws which enable you to boot off the cd, I'll use that instead.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...