Files from an old drive

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
pyrotech91
Newbie
Newbie
Posts: 3
Joined: Sat May 22, 2010 1:25 pm

Files from an old drive

Post by pyrotech91 »

I had to install to a new HD because my update to 10.04 didn't go well.
I have access to the file system of my previous install (dolphin)
I have installed Wine.
I run Wine for a password safe program that I have all of my Passwords in.
Can I get the saved password files from my old HD?
John Drescher

Files from an old drive

Post by John Drescher »

On Sat, May 22, 2010 at 2:43 PM, pyrotech91 <[email protected]> wrote:
I had to install to a new HD because my update to 10.04 didn't go well.
I have access to the file system of my previous install (dolphin)
I have installed Wine.
I run Wine for a password safe program that I have all of my Passwords in.
Can I get the saved password files from my old HD?
Copy the old wine prefix to you new hard drive. If you want copy the
entire user profile.

John
pyrotech91
Newbie
Newbie
Posts: 3
Joined: Sat May 22, 2010 1:25 pm

Re: Files from an old drive

Post by pyrotech91 »

John Drescher wrote:On Sat, May 22, 2010 at 2:43 PM, pyrotech91 <[email protected]> wrote:
I had to install to a new HD because my update to 10.04 didn't go well.
I have access to the file system of my previous install (dolphin)
I have installed Wine.
I run Wine for a password safe program that I have all of my Passwords in.
Can I get the saved password files from my old HD?
Copy the old wine prefix to you new hard drive. If you want copy the
entire user profile.

John
I'm not sure how to do that
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Re: Files from an old drive

Post by jorl17 »

pyrotech91 wrote:
John Drescher wrote:On Sat, May 22, 2010 at 2:43 PM, pyrotech91 <[email protected]> wrote:
I had to install to a new HD because my update to 10.04 didn't go well.
I have access to the file system of my previous install (dolphin)
I have installed Wine.
I run Wine for a password safe program that I have all of my Passwords in.
Can I get the saved password files from my old HD?
Copy the old wine prefix to you new hard drive. If you want copy the
entire user profile.

John
I'm not sure how to do that
Inside your old home folder, there is another hidden folder called .wine (with the dot included). Copy that folder to your new home folder and you will have backed-up your entire wine info. This does not reinstall Wine, but merely it's prefix (definitions+drive_c...).

Basically you could just:

cd /path_to_old_mounted_drive/home/<username> (or wherever your home folder was)
cp -r.wine ~ (Assuming ~ is currently pointing to your current home directory, which should be the case if you run this from your newly configured account.

Cheers,

Jorl17
Martin Gregorie

Files from an old drive

Post by Martin Gregorie »

On Sat, 2010-05-22 at 13:54 -0500, pyrotech91 wrote:
John Drescher wrote:
Copy the old wine prefix to you new hard drive. If you want copy the
entire user profile.

I'm not sure how to do that
The easiest way is to make a tarball ("man tar" if you don't know how to
use tar - its a very useful item in your toolbox) of your entire user
login on your old disk:

cd /old_disk/home
tar cvf /home/user_copy.tar myuser

and then unpack it on the new disk and discard the tarball:

cd /home
tar xvf user_copy.tar
rm user_copy.tar

If everything (programs and your password database) is in the wine
prefix, you can simplify things a little:

cd /old_disk/home/old_user
tar cvf ~/user_copy.tar .wine
cd
tar xvf user_copy.tar
rm user_copy.tar

Tar can take a list of directories to include in the tarball, so I'm
certain you'll be able to work out any variations that you might need
for your particular set-up.


Martin
pyrotech91
Newbie
Newbie
Posts: 3
Joined: Sat May 22, 2010 1:25 pm

Re: Files from an old drive

Post by pyrotech91 »

jorl17 wrote:
pyrotech91 wrote:
John Drescher wrote:On Sat, May 22, 2010 at 2:43 PM, pyrotech91 <[email protected]> wrote: Copy the old wine prefix to you new hard drive. If you want copy the
entire user profile.

John
I'm not sure how to do that
Inside your old home folder, there is another hidden folder called .wine (with the dot included). Copy that folder to your new home folder and you will have backed-up your entire wine info. This does not reinstall Wine, but merely it's prefix (definitions+drive_c...).

Basically you could just:

cd /path_to_old_mounted_drive/home/<username> (or wherever your home folder was)
cp -r.wine ~ (Assuming ~ is currently pointing to your current home directory, which should be the case if you run this from your newly configured account.

Cheers,

Jorl17
OK, I've stopped being an idiot.
Thanks for the help.
(panic is a terrible thing)
Locked