Moving jBASE files between O/S Platforms

Man Page Index


This procedure assumes that you are moving whole directories.  If you wish to move individual files you can use ftp directly as the jBASE file formats are identical in either O/S.  There are alternative ways to do this instead of the procedure listed below.  You can setup a Samba share and move the files directly or create a "tar" of the directories.  Both of these option assume that the files are not in use.  Using the jbackup/jrestore, as detailed below, elevates this problem.

Note:     All commands must be executed in the jshelltype “sh” NOT “jsh”.

Note:     All source code must be recompiled on the new platform as the compilers are different between Windows and *NIX.

 

Moving files from Windows to *NIX:

On Windows backup as follows:

            sh user ~ -->jfind c:\MyDir\MyAcct -print | jbackup -vf c:\MyDir\MyFile

Where:

            c:\MyDir\MyAcct is the Windows data directory to be backed up.

            c:\MyDir\MyFile is where the backup image is to be stored.

 Move the files to the *NIX box.  This can be accomplished via ftp or media.

 On *NIX restore as follows:

        sh user ~ -->jrestore -vf /MyDir/MyFile -c"c:\MyDir\MyAcct /NewDir"

 Where:

             /MyDir/MyFile is the location of the backup file

            c:\MyDir\MyAcct is the Window directory where the data was stored

            /NewDir is the *NIX directory where the files are to be placed.

 

Moving files from *NIX to Windows:

On *NIX backup as follows:

            sh user ~ -->find /MyDir/MyAcct –print | jbackup -vf /MyDir/MyFile

Where:

            c:\MyDir\MyAcct is the *NIX data directory to be backed up.

            c:\MyDir\MyFile is where the backup image is to be stored.

Move the files to the Windows box.  This can be accomplished via ftp or media.

      sh user ~ -->jrestore -vf c:\MyDir\MyFile -c"/MyDir/MyAcct c:\NewDir"

Where:

             c:\MyDir\MyFile is the location of the backup file

            /MyDir/MyAcct is the *NIX directory where the data was stored

            c:\NewDir is the Windows directory where the files are to be placed.


FILE