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
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
> 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
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
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
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.
> tar cf - /usr/thatdir | (rcmd system2 \( cd / \; tar xf - \) )
Thank you! This works fine for me.
Heinz
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
If I'm not mistaken, it will also not tar up empty directories...
Fabio