Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: new color scheme; replace emoticons with text

...

  • Copying data using physical media, e.g., a tape drive, to transfer data between HP-UX running on Charon-HPA PAR and another HP-UX system.
  • NFS: the HP-UX can mount a remote filesystem or a remote system can mount a filesystem exported by the guest HP-UX. Then data can be exchanged between the two systems.
  • File transfer programs, e.g., sftp and scp.
  • General backup and recovery programs in conjunction with a file transfer program, e.g., tar, cpio, pax, fbackup/frecover.

...

The following table shows some SCP syntax examples

TaskCommand
Copy single file to another system$ scp <local-file> <user>@<remote-host>:<remote-file-path>
Copy a directory recursively to another system$ scp -r <local-path> <user>@<remote-host>:<remote-path>
Copy a single file from another system$ scp <user>@<remote-host>:<remote-file-path> <local-file>
Copy a directory recursively from another system$ scp -r <user>@<remote-host>:<remote-path> <local-path>

...


Div

$ scp -r ./Tmp charon@192.168.2.107:

charon@192.168.2.107's password:

file4.txt  100%    0     0.0KB/s   00:00   

file3.txt  100%    0     0.0KB/s   00:00   

file1.txt  100%    0     0.0KB/s   00:00   

file2.txt  100%    0     0.0KB/s   00:00




Div
classpagebreak


Transferring Files with SFTP

...


Div
classcommandline

$ sftp charon@192.168.2.107

charon@192.168.2.107's password:

Connected to 192.168.2.107.

sftp> ls Tmp

Tmp/A  Tmp/B  Tmp/C 

sftp>

sftp> get -r Tmp/

Fetching /home/charon/Tmp/ to Tmp

Retrieving /home/charon/Tmp

Retrieving /home/charon/Tmp/B

Retrieving /home/charon/Tmp/B/b

Retrieving /home/charon/Tmp/B/a

Retrieving /home/charon/Tmp/A

Retrieving /home/charon/Tmp/A/b

Retrieving /home/charon/Tmp/A/a

Retrieving /home/charon/Tmp/C

sftp>

sftp> bye



Div
classpagebreak


Using General Backup and Restore Commands

...

  • cpio
  • tar
  • dump/restore for HFS filesystems
  • vxdump/vxrestore for VxFS filesystems
  • fbackup/frecover for selective file backup and restore
  • make_net_recovery / make_tape_recovery when working with Ignite
  • pax to create and restore archive files of different formats; there is also an pax_enh package to support file sizes larger than 8GB in version 11.23 (default in HP-UX 11.31).

...

Please note:

  • The cpio and the standard tar command on HP-UX have restrictions with respect to the largest file size they can handle: the maximum file size for cpio is 2GB, the maximum for tar is 8GB.

...

...

  • The utilities tar, cpio, and pax can be used to transfer archives between HP-UX and other operating systems. 

When creating an archive using one of the above commands, you can copy the archive to the target HP-UX system and restore it there. Alternatively, you can pipe the archive command on the source system through ssh to the respective restore command on the target.

...

On the source system:

# pax -w <source-path> | ssh <remote-user>@<target-ip> "(cd <destination-dir>; pax -v -r -pe)"


(warning) Take Please note: Take care not to overwrite any files on the target system! Please read the respective man-pages carefully to learn about additional parameters of the commands and their proper use.

Div
classpagebreak


Transferring Files to/from an MPE/iX Guest

If you have enough disk space on the Charon-HPA emulated HP3000MPE/iX guest, you can copy existing HP3000 MPE/iX software, data, and settings to the guest MPE/iX system. Charon-HPA PAR comes with MPE/iX 7.5 already installed and patched. So you avoid the most difficult part of setting up a new system.

Warning

Charon-HPA PAR comes with MPE/iX 7.5. Note that there are significant restrictions for earlier MPE/iX releases. Charon-HPA PAR may not run with such releases. When using the provided system disk, you must not overwrite any MPE files with copies from earlier MPE releases. As a general rule, specify the ;KEEP keyword on :RESTORE commands, especially when using STORE tapes that may contain PUB.SYS files. It is strongly recommended to use the MPE/iX 7.5 disk provided by Stromasys. Should you have different requirements, please discuss them with your Stromasys representative.

...

The traditional methods used to move files between systems are available also available for Charon-HPA PAR emulated systems.

When using HP the original vendor or third-party Store, you should specify the ;COMPRESS (or equivalent) keyword to ensure that the resulting archive files are as small as possible. Compression can reduce space required to store TurboIMAGE files quite considerably. The ;PARTDB keyword is also recommended, to include any partial database files you may have.
To ensure that all files in the Hierarchical File System (HFS) are included store the " / " fileset; Store also interprets the " @.@.@ " fileset as " / ".

...

There are two ways you can connect a tape device to a Charon-HPA PAR host system. If you build your server with a SCSI card, you can connect any SCSI tape device that works with the HP3000MPE/iX. You can also connect a HP USB DAT 72 drive to the Charon-HPA PAR host system which offers a low-cost solution if you currently use DDS3 or DDS4 media.

Any HP original vendor or third-party backup product may be used to restore files on the Charon-HPA PAR guest system.

Using FTP

FTP can be used to transfer individual files. However, it is far more efficient to use it in conjunction with any STORE product that can store-to-disk, preferably compressed. Use FTP to transfer the resulting archive file(s) to the emulated HP3000 MPE/iX guest system and restore-from-disk to extract the contents. Restore-from-disk results in files being created with correct attributes and security settings which is not necessarily the case when transferring individual files with FTP. This method does require enough free disk space on both systems to hold the store-to-disk archive file(s). If disk space is tight, individual accounts (or even groups) can be processed instead of storing the whole system.

Any HP original vendor or third-party backup product may be used to restore files from disk on the Charon-HPA PAR guest system.

Other Methods

When available, any other HP3000 MPE/iX file transfer can be used, e.g., :DSCOPY , Samba, or NFS.

...