Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-24-2002, 07:48 PM   #1
Registered: Apr 2002
Posts: 47

Rep: Reputation: 15
Transferring my /home directory from one computer to another.

I need to switch computers, and it seems that the easiest way to do this is to copy my original home directory from one computer to the other via ethernet.

Both computers are set up with Mandrake 8.2, identical user accounts, and root passwords.

They have very different hardware though.

I intend to overwrite the home directory on the target computer with the contents of the home directory on my original computer.

What's the best way to do this to insure that *every* file from my original machine is duplicated on my second machine?

Old 06-24-2002, 08:51 PM   #2
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176

Rep: Reputation: 30
tar -czvf backup.tgz /home/bblalock
this creates a file called:


move this file to new machine. then -

tar -xzvf backup.tgz

to open it.

this may not be the best way. but it works.
Old 06-25-2002, 06:18 AM   #3
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
the quickest way is to use ftp
do something like this
cd /home/
mkdir backup
cd backup
ncftpget -R ftp://root@yourhost/../home
(that will do tar onthe fly)
make sure that you allow root access on your ftp
you can also use samba, but all rights won't be attained
Old 06-25-2002, 06:39 PM   #4
Registered: Apr 2002
Posts: 47

Original Poster
Rep: Reputation: 15
Will the command line <tar -czvf backup.tgz /home/bblalock> preserve all my file attributes (ownership, permissions, and such) and recursively store the entire directory structure?

And do I need the argument <-p> when I am extracting?

Old 06-25-2002, 11:16 PM   #5
Registered: Apr 2002
Posts: 47

Original Poster
Rep: Reputation: 15
Here's a bit of strangeness I encountered.

I ran the command to zip up my home directory, and it seemed to be going OK. I checked every once in a while, and the backup.tgz file was larger each time, the last time I had checked, it was 3.3GB and still going strong.

When the command finished and I was returned to the prompt, the backup.tgz file was only 998MB in size. This is plainly impossable, as I have at least three ISO images in there, a full copy of my windows drive, and all the garbage I've collected since 1995.

What gives?

Why does it seem that my backup.tgz file shrunk amazingly *after* the tar command finished?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 03:37 PM
Transferring Hard Drive to Newer Computer kaplan71 SUSE / openSUSE 2 11-04-2005 05:11 PM
Transferring Hard Drive to Newer Computer kaplan71 Fedora 1 11-04-2005 02:32 PM
How can home directory from another computer using Samba linuxeagle Linux - Networking 1 02-05-2004 02:33 PM
home computer assembly blotch Linux - Hardware 3 04-02-2003 11:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration