help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get cfengine to act like tar


From: Chris Marlow
Subject: Re: How to get cfengine to act like tar
Date: Tue, 1 Oct 2002 15:17:58 -0400

I was hoping to come up with a way to turn the links into directories....
So that something like this:

lrwxrwxrwx   1 root     sys            9 Oct 01 13:43 linkdir1 -> ./realdir
drwxr-sr-x   3 root     sys          512 Oct 01 13:42 realdir

would end up looking like this after it was copied:

drwxr-sr-x   1 root     sys            9 Oct 01 13:43 linkdir1
drwxr-sr-x   3 root     sys          512 Oct 01 13:42 realdir

This way, we can have links to common packages, the will in turned be
copied as real files on the target machines....

You can accomplish this (in a way) by using the -h option of tar   (Ex. tar
-cvhf /tarfile *)

-Chris

--------
Christopher S. Marlow
AIX Infrastructure / 24x7 Security
IBM Global Services SDC-North
marlowc@us.ibm.com
T/L - 446-3253
Phone - 802-769-3253


|---------+---------------------------->
|         |           Mark.Burgess@iu.h|
|         |           io.no            |
|         |                            |
|         |           10/01/2002 03:03 |
|         |           PM               |
|         |                            |
|---------+---------------------------->
  
>----------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                               |
  |       To:       Chris Marlow/Burlington/Contr/IBM@IBMUS                     
                                               |
  |       cc:       help-cfengine@gnu.org                                       
                                               |
  |       Subject:  Re: How to get cfengine to act like tar                     
                                               |
  |                                                                             
                                               |
  |                                                                             
                                               |
  
>----------------------------------------------------------------------------------------------------------------------------|





On  1 Oct, Chris Marlow wrote:
>
> Mark -
>
> I created a shorted / more consise config file so that I could run the
> debug for you, and now the copying works as it should.   links as links,
> files as files.  Must be that somewhere in the splitting of the configs,
I
> introduced a problem with how it looks at the files.  I'll sort out all
> that at a later time.

Glad to hear it worked out.

> However ,there is one more thing that is stumping me.  Another type of
copy
> that comes in useful for how we create packages is to copy from on server
> to another, turning links into real files.  (Akin to the tar -h flag)
>
> However, while it turns links to files into real files, it runs into
> problems when it comes to links to directories.  An example would be:
>
> lrwxrwxrwx   1 root     sys            9 Oct 01 13:43 linkdir1 ->
./realdir
> drwxr-sr-x   3 root     sys          512 Oct 01 13:42 realdir
>
>
> According to the reference manual for "linktype", for directories, this
> option is ignored.  However, is there an option / config I can use that
> WILL be able to make these links?
>

I'm abit confused here about what you think should happen. Are you
saying that it should create links to the directories anyway,
or create a directory?

M

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~











reply via email to

[Prev in Thread] Current Thread [Next in Thread]