On Tuesday 29 October 2002 10:47 am, Ruel Masil wrote:
> How can i copy all files in /var/spool/mail and /home to another
> linux server. They both reside on the same subnet. Upon copying can i
> retain their rights/permissions.
>

in order to retain the rights/permissions, the users must have the same 
uid in both servers.

you can use tar to compress the files and scp to transfer them.

as root:

tar cfvzp mail.tgz /var/spool/mail
tar cfvzp home.tgz /home

scp -p mail.tgz home.tgz server2:/~

then (on server2), untar

tar xfvz mail.tgz -C /
tar xfvz home.tgz -C /
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to