TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:17626] Right way to move an installation.



> mkdir /newusr
> mount /dev/newpartition /newusr
> (cd /usr && tar cf - .) | (cd /newuser && tar xf -)

Why noy just 'cp -a /usr /newuser'? :)

> mv /usr /oldusr
> mv /newusr /usr
> rm -rf /oldusr