[ale] backup copy /home/user
James P. Kinney III
jkinney at localnetsolutions.com
Sat Jun 21 13:29:42 EDT 2003
Try archiving the data first. Use
tar cvzpf home-user.tar.gz /home/user/*
Then burn that file to CD. When you are ready to reinstate it, as root:
cd /
tar xvpzf <path>/home-user.tar.gz
The files will be back where they were but now on the new machine.
It would also be a good idea to backup /etc/passwd, /etc/groups and
/etc/shadow, /etc/gshadow. This will move the old setup for users and
keep the UID/GID number in line with the tarball backup you just moved.
Note: if you copy over the new /etc/shadow with the one from the old
machine, the root password will change to what it was on the old
machine. You have been warned!
On Sat, 2003-06-21 at 10:36, Christopher Russell wrote:
> I am trying to copy /home/user from one RH9 machine to another RH9
> machine, using a CDR; but the files and directories lose their
> permissions. How should this be done properly, please?
>
> WHAT I'VE DONE SO FAR:
> I used a CDR, and syntax from RH8 Bible by Negus, p471.
>
> mkisofs -o /var/tmp/user.cd /home/user
> cdrecord -v speed=10 dev=0,0,0 -data /var/tmp/user.cd
>
> WHAT HAPPENS:
> On copying the files and directories into the new /home/user directory,
> icons are labeled as user not having necessary permissions. e.g.,
> /evolution has changed from 700 to 555, /stuff has changed from 755 to
> 555, and a .html file has changed from 664 to 555.
>
> WHAT I THINK THE PROBLEM IS:
> A CD is an archive media, and so it's something in the way I made the
> CD, but what should have been the way to do this please, please?
>
> Thanks in advance,
> Chris
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
--
James P. Kinney III \Changing the mobile computing world/
CEO & Director of Engineering \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
http://www.localnetsolutions.com
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) <jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
This is a digitally signed message part
More information about the Ale
mailing list