LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 06-24-2002, 06:48 PM   #1
BBlalock
Member
 
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?

Thanks!
 
Old 06-24-2002, 07:51 PM   #2
mace
Member
 
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:

backup.tgz

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, 05:18 AM   #3
Noerr
Member
 
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, 05:39 PM   #4
BBlalock
Member
 
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?

Thanks!
 
Old 06-25-2002, 10:16 PM   #5
BBlalock
Member
 
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?
 
  


Reply


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 02:37 PM
Transferring Hard Drive to Newer Computer kaplan71 Suse/Novell 2 11-04-2005 04:11 PM
Transferring Hard Drive to Newer Computer kaplan71 Fedora 1 11-04-2005 01:32 PM
How can home directory from another computer using Samba linuxeagle Linux - Networking 1 02-05-2004 01:33 PM
home computer assembly blotch Linux - Hardware 3 04-02-2003 10:29 PM


All times are GMT -5. The time now is 03:19 PM.

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