[LBo] Moving Home

Jason Armstrong jason at gmx.net
Mon Mar 12 00:06:54 CET 2007



On Sun, 11 Mar 2007, Tim wrote:

>> If you're backing up to a USB flash drive, don't copy the files directly;
>> use tar to create an archive file preserving the permissions.
>>
>> sudo tar -zcSpf home.tar.gz /home
>>
>> When you set up the new system, make sure the user has the same user and
>> group IDs, or be prepared to chown/chmod as required.
>>
>> To restore your data from the archive:
>>
>> sudo tar -zxSpf home.tar.gz
>>
> I had decided to use Jason option to tar it up and move it, problem is that it
> only tars up the files it does not tar up the folder, any suggestions has to
> how I can get it to tar the entire contents of home??

What that should do is create an archive containing a root directory of 
home and all of the contents of /home for all users.

When you untar it, whatever directory you untar it in will have a complete 
replication of your current /home.

Cheers,

Jason


More information about the QnA mailing list