RE: [SLUG] moving /home and preserving attributes (mode, group owner etc...)

From: Patrick Grantham (pwgrant@cssi-fl.com)
Date: Wed Jun 23 2004 - 10:52:46 EDT


Thanks. Going a step further, how can I exclude hidden files and those
files/folders that begin with "."?

-----Original Message-----
From: slug@nks.net [mailto:slug@nks.net]On Behalf Of R.G. Mayhue
Sent: Tuesday, June 22, 2004 11:16 PM
To: slug@nks.net
Subject: Re: [SLUG] moving /home and preserving attributes (mode, group
owner etc...)

On Tuesday 22 June 2004 10:40 pm, Patrick Grantham wrote:
>
> I'm migrating data files to a new server. What's the best way to move the
> /home data and preserve the permission settings?
>
> Seems like a naive question, how does one mount a file system on another
> server without using samba?
>

If you have rsync and ssh installed on both servers its pretty easy.

You can do this either direction but this is probably the easiest.

Login to the server you want to move the files onto and cd into the /home
directory and execute the command below replacing <remote_server> with the
name of the server holding the files you want. Don't forget the trailing
"." (dot).

rsync --progress --rsh=/usr/bin/ssh -az <remote_server>:/home .

This assumes you will be logging in as root on the remote server and you
will
be asked for the root password. The files on the remote server will then be
mirrored onto the local server.

If you want to see what will be copied add --dry-run to the above command
and
it will just go through the motions without copying anything.

--rob
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:09:02 EDT