Mailinglist Archive: opensuse (3666 mails)

< Previous Next >
Re: [SLE] Copying data and permisions
  • From: Michael James <Michael.James@xxxxxxxx>
  • Date: Fri, 11 Mar 2005 12:00:01 +1100
  • Message-id: <200503111200.01995.Michael.James@xxxxxxxx>
On Fri, 11 Mar 2005 07:36 am, Scorpy wrote:
> Is there a way to copy files form one server to another and to leave
> permisions and owners in place.
> I have the same users/groups on other server.

rsync is THE tool-of-choice here.
Worth learning, even just for making copies on the same machine.
Like cp use "-a" to preserve all meta-data
(ownerships, permissions times etc)

Type "rsync --help" and have a look.

To copy files between different machines it can use:
ssh (no configuration required, good for low volume)

rsh (Fast, high volume, but need to set up rsh trust.)
ONLY do this on totally secure private subnets.

nfs (better to nfs-mount the filesystem being read)

rsync server (fast, secure, but needs to be set up)

The unique thing about rsync
is that it doesn't have to copy all the data every time,
it can refresh an existing copy, excellent for "spinning backup".

michaelj

--
Michael James michael.james@xxxxxxxx
System Administrator voice: 02 6246 5040
CSIRO Bioinformatics Facility fax: 02 6246 5166

< Previous Next >
References