help-cfengine
[Top][All Lists]
Advanced

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

Copying a directory + purge + links cfengine 2.0.a15


From: Sheryl Coppenger
Subject: Copying a directory + purge + links cfengine 2.0.a15
Date: Thu, 10 Jan 2002 12:58:26 -0500 (EST)

Hi,

I'm an new cfengine user, running 2.0.a15.  So far, most things I've
tried are running well, but I have a directory struction that I need
to copy and buried within the structure are a lot of links.  The copy
is skipping the links, so what I get is

   Old              What should happen          Result

   .../bin/abc      .../bin/abc->./abc2         .../bin/abc  (old binary)
   .../bin/abc1     (not there)                 (not there)
   .../bin/abc2     .../bin/abc2                .../bin/abc2 (new binary)
                    .../bin/xyz->xyz2           .../bin/xyz->xyz2
                    .../bin/xyz2                .../bin/xyz2

My configuration file contains

        from-dir        dest=todir
                        recurse=inf
                        purge=true
                        backup=false
                        type=checksum

What am I missing?  I tried adding a links step but since the files
exist it refuses to remove them and make the links.  And I'd prefer
to do this all in the copy because I can't guarantee how the structure
will change over time and I don't want to have to rewrite the config
every time the software changes.

Thanks,

Sheryl

-- 

Sheryl Coppenger    SEAS Computing Facility Staff      sheryl@seas.gwu.edu
                    The George Washington University   (202) 994-6853
                    http://www.seas.gwu.edu/~sheryl



reply via email to

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