Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Howto? copy a dir tree to another system?!

0 views
Skip to first unread message

Heinz Tenschel

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
Hello!

I want to copy a complete directory tree from an OSR5.0.4 (system1)
to an OSR5.0.6 (system2). In that tree there are several symbolic
links and some special files.

I tried

rcp -p -r /usr/thatdir system2:/usr

but it copies symbolic links to normal files.

system2 will be an backup-system. this is not a one-time-job. it
should be done easily every night.

What's the best way to do it??

TIA
Heinz

Brian

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
"Heinz Tenschel" <ht_xN...@cmdx.de> wrote in message
news:8ur35r$mr3$05$1...@news.t-online.com...

The best and easiest way is to purchase one of the supertar products
like BackupEdge or LoneTar.

You could also use cpio which I believe will follow symbolic links.

>
> TIA
> Heinz
>

Brian

Heinz Tenschel

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
> > What's the best way to do it??
>
> The best and easiest way is to purchase one of the supertar products
> like BackupEdge or LoneTar.

> You could also use cpio which I believe will follow symbolic links.

Sorry! I forgot to mention that i want to do the copy over the
network and i don't know how to do that with cpio or BackupEDGE.

Heinz

Mike Kenyon - David Austin Roses Limited

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
Heinz Tenschel wrote:
> I want to copy a complete directory tree from an OSR5.0.4 (system1)
> to an OSR5.0.6 (system2). In that tree there are several symbolic
> links and some special files.
> I tried
> rcp -p -r /usr/thatdir system2:/usr

I'm assuming that you want thatdir to appear in /usr on system2, and that you
are running rcp on system1.

tar cf - /usr/thatdir | (rcmd system2 \( cd / \; tar xf - \) )

The escaped set of brackets is very important to be escaped, as is the
semi-colon, so that they are passed intact to the shell run by rcmd on the
remote machine.

Note that SCO's tar cannot cope with device files (or pipes?) so if any of
these files are present in /usr/thatdir (which devices certainly shouldn't)
then they will not be copied. The GNU version of tar, which is available via
Skunkware, can, and may be more suitable.
--
Mike Kenyon <mi...@davidaustinroses.co.uk>
I.T. Manager for David Austin Roses Ltd

Tony Lawrence

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
Heinz Tenschel wrote:
>
> Sorry! I forgot to mention that i want to do the copy over the
> network and i don't know how to do that with cpio or BackupEDGE.

BackupEDGE (and I think all the current Supertars) works very
nicely over a network and how to do so is quite well documented
in the manuals.

You can use cpio (or tar, etc.) with rcmd by writing to stdout
and reading stdin; as that's the normal use of cpio anyway it
isn't hard to do.

--
Tony Lawrence (to...@aplawrence.com)
SCO/Linux articles, help, book reviews, tests,
job listings and more : http://www.pcunix.com

cth...@my-deja.com

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
Hi,

You can export in NFS the FS /usr on system2 and mount it on the
system1 machine in /mnt.
After this, you make :

cd /usr/thatdir
find . -print | cpio -pdum /mnt

You can make a shell script with this and put it in your cron.

Best regards.

Charles THISE.

In article <8ur35r$mr3$05$1...@news.t-online.com>,
"Heinz Tenschel" <ht_xN...@cmdx.de> wrote:
> Hello!


>
> I want to copy a complete directory tree from an OSR5.0.4 (system1)
> to an OSR5.0.6 (system2). In that tree there are several symbolic
> links and some special files.
>
> I tried
>
> rcp -p -r /usr/thatdir system2:/usr
>

> but it copies symbolic links to normal files.
>
> system2 will be an backup-system. this is not a one-time-job. it
> should be done easily every night.
>

> What's the best way to do it??
>

> TIA
> Heinz
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.

Heinz Tenschel

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
Hi Mike!

> tar cf - /usr/thatdir | (rcmd system2 \( cd / \; tar xf - \) )

Thank you! This works fine for me.

Heinz

Kevin Smith

unread,
Nov 15, 2000, 3:00:00 AM11/15/00
to
In article <8ur35r$mr3$05$1...@news.t-online.com> "Heinz Tenschel" <ht_xN...@cmdx.de> writes:
>Hello!
>
>I want to copy a complete directory tree from an OSR5.0.4 (system1)
>to an OSR5.0.6 (system2). In that tree there are several symbolic
>links and some special files.
>
>I tried
>
> rcp -p -r /usr/thatdir system2:/usr
>
>but it copies symbolic links to normal files.
>
>system2 will be an backup-system. this is not a one-time-job. it
>should be done easily every night.
>
>What's the best way to do it??

My favorite for this sort of thing is rsync

http://samba.anu.edu.au/rsync/

My favorite set of options is

-WvrtSHlL --progress --stats

On slow connections (dialup) don't use the W arg and it will compare
files on each side and only send the differences. The W arg works good
for fast connections or internal copies.
--
Do two rights make | Kevin Smith, ShadeTree Software, Philadelphia, PA, USA
a libertarian | 001-215-487-3811 shady.com,kevin bbs.cpcn.com,sysop
| dvtug.org,kevins--Delaware Valley Transit Users Group

Fabio Giannotti

unread,
Nov 15, 2000, 3:00:00 AM11/15/00
to
Mike Kenyon - David Austin Roses Limited <mi...@davidaustinroses.co.uk> wrote
in message news:3A11269E...@davidaustinroses.co.uk...

> Heinz Tenschel wrote:
> > I want to copy a complete directory tree from an OSR5.0.4 (system1)
> > to an OSR5.0.6 (system2). In that tree there are several symbolic
> > links and some special files.
> > I tried
> > rcp -p -r /usr/thatdir system2:/usr
>
> I'm assuming that you want thatdir to appear in /usr on system2, and that
you
> are running rcp on system1.
>
> tar cf - /usr/thatdir | (rcmd system2 \( cd / \; tar xf - \) )
>
> The escaped set of brackets is very important to be escaped, as is the
> semi-colon, so that they are passed intact to the shell run by rcmd on the
> remote machine.
>
> Note that SCO's tar cannot cope with device files (or pipes?) so if any of
> these files are present in /usr/thatdir (which devices certainly
shouldn't)
> then they will not be copied. The GNU version of tar, which is available
via
> Skunkware, can, and may be more suitable.

If I'm not mistaken, it will also not tar up empty directories...

Fabio

0 new messages