Hi,

Simple if you have the same "paths" for uv and for your accounts in the target server.
You can use Os file copying (with universe stopped on source server.)
If you use SQL Schema you must prepare some informations with format.conv -export before file copying and run a format.conv -import. You must be carefull with uv (and subdirectories) some files must be copied :
- uv\UV.ACCOUNT
- uv\catdir (global catdir)
- check the uv\VOC
--- and other elements added/modified into uv account

I you change the "paths" of uv or accounts, you must update all VOC files (there is full-OS-path inside records.
We do it with a SEARCH-REPLACE prog here :
------------------------------------------------------------------------
* run as  : UPDATE.UVACCOUNT startdir
* startdir  is a base-path for searching VOC files
* ----------------------------------------------------------
* EFV 20-01-06
*-----------------------------------------------------------
EQU  UVNT   TO SYSTEM(91)
EQU  UVHOME TO SYSTEM(32)
EQU  OS.SEP    TO IFS(SYSTEM(91),'\','/')
EQU  OS.RUN TO IFS(SYSTEM(91),'DOS /C "','SH -c "')

* ------------------------------------ open UV.ACCOUNT
OPEN 'UV.ACCOUNT' TO F.UVA ELSE
    EXECUTE 'SET.FILE UV UV.ACCOUNT UV.ACCOUNT' CAPTURING RIEN
    OPEN 'UV.ACCOUNT' TO F.UVA ELSE
         STOP 'UV.ACCOUNT NOT OPENED'
    END
END

* ------------------------------------ check start dir if @NULL, start fom first level of uvhomepath
STMT = CHANGE(TRIM(@SENTENCE),' ',@AM)
STARTDIR = ''
IF STMT<1> = 'RUN' THEN
    STARTDIR = TRIM(STMT<4>)
END ELSE
    STARTDIR = TRIM(STMT<2>)
END
IF STARTDIR = '' THEN STARTDIR = FIELD(UVHOME,OS.SEP,1,2)

* ------------------------------------ OPEN 'UV.ACCOUNT' TO F.UVA ELSE
    EXECUTE 'SET.FILE UV UV.ACCOUNT UV.ACCOUNT' CAPTURING RIEN
    OPEN 'UV.ACCOUNT' TO F.UVA ELSE
         STOP 'UV.ACCOUNT NOT OPENED'
    END
END

*  ------------------------------------ lecture des fichiers VOC
CRT 'Recherche dans 'STARTDIR:' de tous les VOC...'
IF UVNT THEN
    EXECUTE OS.RUN:'DIR /B/S ':STARTDIR:'\VOC"' CAPTURING VOCFILES
END ELSE
    EXECUTE OS.RUN:'find ':STARTDIR: '-name VOC"' CAPTURING VOCFILES
END

HEADING "Mise ` jour de UV.ACCOUNT depuis ":CHANGE(STARTDIR,'\','/'):" 'TL'"

* ------------------------------------ upate uv.account with all VOC I can open
LOOP
  REMOVE ID FROM VOCFILES SETTING EOS
  OPENPATH ID TO F.VOC THEN
       ACNT.NAME = UPCASE(FIELD(ID,OS.SEP,DCOUNT(ID,OS.SEP)-1))
       ACNT.PATH = ID[1,COL2()-1]
       READ UVA FROM F.UVA,ACNT.NAME THEN
         IF UPCASE(UVA<11>) # UPCASE(ACNT.PATH) THEN
              PRINT '# ':FMT(ACNT.NAME,'ML#20'):' ':UVA<11>,ACNT.PATH
         END ELSE
              PRINT '= ':FMT(ACNT.NAME,'ML#20'):' ':ACNT.PATH
         END
       END ELSE
         WRITEV ACNT.PATH ON F.UVA,ACNT.NAME,11
         PRINT '+ ':FMT(ACNT.NAME,'ML#20'):' ':ACNT.PATH
       END
   END
WHILE EOS DO REPEAT

* ------------------------------------ CHECK all UV.ACCOUNT if open VOC is ok
SELECT F.UVA
LOOP WHILE READNEXT ID DO
    READ UVA FROM F.UVA,ID THEN
         OPENPATH UVA<11>:OS.SEP:'VOC' TO F.DUMMY ELSE
              DELETE F.UVA,ID
              PRINT '- ':FMT(ID,'ML#20'):' ':UVA<11>
              CONTINUE
         END
    END
REPEAT

------------------------------------------------------------------------

I hope this help.

Manu

----- Original Message ----- From: "Gabriel Green" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, May 09, 2007 5:24 AM
Subject: [U2] Moving UniVerse over to another machine...


This weekend, I plan to move UniVerse (10.2, Win Server 2003 x64 Standard
Edition, SP2) to another machine running the same OS.

What is the proper procedure? I have already installed and authorized UV on
the other machine.  I take it it's not as simple as copying D:\IBM over to
the other machine (the few UV accounts we use live in D:\IBM\CONV)....

Anybody have some tricks or tips?

Thanks--
Gabe
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to