Renaming a gnu database

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Renaming a gnu database

  • Creator
    Topic
  • #48641
    Kathy Zwilling
    Participant

      Does anyone know if a gnu db can be renamed and used without dire consequences or data loss?

      I want to rename one of our sites that uses a gnu db named after it.  When I rename the site I want to rename the db as well and not lose the critical data in it.  

      The Xlate and tclproc code that access this db get the name of the db (when using it) based on the site the Xlate/tclproc is running in to avoid hardcoding so xlates/tclprocs can be moved from test to live with no changes required.

      Thanks for your help!

      Kathy Zwilling

    Viewing 1 reply thread
    • Author
      Replies
      • #59261
        James Cobane
        Participant

          Kathy,

          The gnu database is really just a file (with some code built into it); you should be able to simply rename it.  You could try just copying the file to a new name, then running some gdbm commands against the copy via hcitcl.

          Hope this helps.

          Jim Cobane

          Henry Ford Health

        • #59262
          Kathy Zwilling
          Participant

            Thanks, Jim.   I will give that a try.  I just wanted to make sure there wasn’t some something special there.

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.