Hi Anita

You didn't specify the operating system(s) you are using - so I'll presume
Windows, and also presume that an equivalent UV account already exists on
the destination PC

You can use UVBACKUP on the source PC to backup the file, and UVRESTORE on
the destination PC to restore the file - make sure that the Universe BIN
directory is in the search paths on both PCs (normally C:\IBM\UV\BIN).  If
you enter just UVBACKUP or UVRESTORE in a command shell window, you will
get a list of command line parameters for these programs.

In a command shell window, change to the directory where the file has to be
backed up from, and do:
UVBACKUP -v -t <backup.image.name> <name(s) of file(s) to backup>
The <backup.image.name> is a name for a directory path and file name that
will contain the backup image - this then needs to be copied to the
destination PC, and must be restored using UVRESTORE.

Remember, you also need to include the file's data dictionary in the
backup/restore process if needed.
Example:
You have a UV account called TEST in directory C:\DATA\TEST, on both the
source and destination PC
You want to backup a file called FILE1 from TEST to the other PC - the
dictionary file would then (normally) be called D_FILE1.

On the source PC:
Open a command shell (Start -> Run -> cmd)
cd c:\data\test
uvbackup -v -t BACKUP.DAT D_FILE1 FILE1

Now copy file backup.img to the other PC's C:\DATA\TEST directory (using
network / memory stick / whatever other means you have available)
On the destination PC:
Open a command shell
cd c:\data\test
uvrestore -v BACKUP.DAT

This is a _very_ basic example. There are also other things to keep in mind
- Indexes (which also needs to be backed up), you should have no activity
(reads/writes/record locks) on the file(s) being backed up & restored etc.
If the destination UV account does not exist on the destination PC, you'll
have to create it first.  It is also important that you backup your base UV
account regularly, as it contains a lot of things needed to restore a
crashed system - such as user accounts, ODBC settings, VOC entries etc.

Below, I pasted extracts from shell scripts that I use for regular backups
/ restores on my system.

HTH

Arnold Bosch
IT Administrator
Taeuber & Corssen SWA (Pty) Ltd
Tel +264 (0)61 293 2106
Cell +264 (0)81 124 8625
Fax +264 (0)61 293 2104
Email: [EMAIL PROTECTED]


BACKUP.CMD:
-------------------------
@echo off
REM XSERV Universe Backup script
REM Usage: backup -d|-f DAYNAME
REM Command-line parameters:
REM   -d Perform Daily Backup
REM   -f Perform Full Backup
REM     DAYNAME: Weekday (e.g. MONDAY) or MONTHLY for monthly backup
REM Daily backup makes full backup of live data and UV account
REM Full backup backs up history as well.
REM Original: A. Bosch 26/10/2003

REM Assign more readable values
if x%1==x set BU_Type=DAILY
if x%1==x-d set BU_Type=DAILY
if x%1==x-D set BU_Type=DAILY
if x%1==x-f set BU_Type=FULL
if x%1==x-F set BU_Type=FULL

Set WDAY=%2

@echo off
echo Starting XSERV Universe %BU_Type% Backups %DATE% %TIME%


REM Go to d:\mydata, so that relative backups can be done
REM   Relative backups can be easier to restore to alternate locations.
REM Create file lists for all Universe Accounts that must be backed up
REM and save to temporary files.  These lists will be used for UVBackup
REM Do Daily lists first, and skip rest if not a full backup

d:
cd \mydata
echo %TIME% Creating  file list for MYDATA.LIVE
uvwalk MYDATA.LIVE -recurse > d:\temp\mylive.lst

REM Backup UV account as well - this stores user and account info
c:
cd \ibm
echo %TIME% Creating  file list for UV
uvwalk uv -recurse > d:\temp\uv.lst


REM Don't create following backup lists if this is a daily backup
if %BU_Type%==DAILY goto SkipFullLists


REM Start of lists to include in full backup

REM History is in d:\mydata, so go there before creating list
d:
cd mydata
echo %TIME% Creating file list for MYDATA.HISTORY
uvwalk MYDATA.HISTORY -recurse > d:\temp\myhist.lst


:SkipFullLists


REM Now do actual backups.  Take care to start from appropriate
REM directories, otherwise it will not work
REM Backups go to files to minimise time.  Veritas Backupexec is then
REM used externally from this script to create backups to tape.

REM First make sure destination folder exists
if not exist f:\backup\%WDAY% mkdir f:\backup\%WDAY%

REM Now proceed with the backups
d:
cd \mydata

if exist f:\backup\%WDAY%\mylive.bak del f:\backup\%WDAY%\mylive.bak
echo %TIME% Creating  Backup for MYDATA.LIVE
uvbackup -f -b 65536 -cmdfil d:\temp\mylive.lst >
f:\backup\%WDAY%\mylive.bak

REM Backup UV account as well - this stores user and account info

if exist f:\backup\%WDAY%\uv.bak del f:\backup\%WDAY%\uv.bak
c:
cd \ibm
echo %TIME% Creating  Backup for UV
uvbackup -f -b 65536 -cmdfil d:\temp\uv.lst > f:\backup\%WDAY%\uv.bak


REM Don't create backups for rest if this is a daily backup
if %BU_Type%==DAILY goto SkipFullBU

REM Start of backups to include in full backup

REM History is in d:\mydata, so go there before creating backup
if exist f:\backup\%WDAY%\myhist.bak del f:\backup\%WDAY%\myhist.bak
d:
cd \mydata
echo %TIME% Creating backup for MYDATA.HISTORY
uvbackup -f -b 65536 -cmdfil d:\temp\myhist.lst >
f:\backup\%WDAY%\myhist.bak


:SkipFullBU


REM Delete temporary listfiles
d:
cd\temp
if exist mylive.lst del mylive.lst
if exist uv.lst del uv.lst
if exist myhist.lst del myhist.lst

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

RESTORE.CMD (restores Friday's data backed up using BACKUP.CMD, as well as
UV system account):
---------
d:
cd\mydata
uvrestore -U -v f:\friday\mylive.bak
uvrestore -U -v f:\friday\embhist.bak
c:
cd\ibm
uvrestore -U -v f:\friday\uv.bak

------


                                                                           
             Anita Panda                                                   
             <[EMAIL PROTECTED]                                             
             com>                                                       To 
             Sent by:                  u2-users@listserver.u2ug.org        
             [EMAIL PROTECTED]                                          cc 
             stserver.u2ug.org                                             
                                                                   Subject 
                                       [U2] Exporting files                
             29/03/2007 07:35                                              
                                                                           
                                                                           
             Please respond to                                             
             [EMAIL PROTECTED]                                             
                er.u2ug.org                                                
                                                                           
                                                                           




Hi,
We have two standalone machines running on Universe.I have got  datafile
say EMPLOYEE.F   in one universe instance.Now I want to export this file
from my machine to the other without establishing any  connection with
it.How will the other user import the same file onto his machine.

for ex :I have a data file say ABC .F on m/c 1.Now on m/c 2 my friend
needs the same file and there is no connection within the two m/cs.
Now how will the datafile on m/c 1 exported to m/c2.
how will m/c2 import the same.Please help in this regard.

Thanks and Regards,
Anita
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to