Using an intermediate archive file
Use the pax command to copy the source (HFS) file system into an intermediate archive file and then use the pax command to copy from the archive file into the target (zFS) file system. This archive file can be a z/OS® UNIX file or it can be an MVS™ data set.
Suppose you have an HFS file system mounted at /etc/dfs. You want to copy this into an empty zFS file system mounted at /etc/dir1/testzfs1. You issue the following commands from z/OS UNIX:
- Move to the source (HFS) file system mounted at /etc/dfs
cd /etc/dfs
- Create a z/OS UNIX archive file called /tmp/zfs1.pax that
contains the HFS file system mounted at /etc/dfs
pax -wvf -o saveext /tmp/zfs1.pax .
- Move to the target (zFS) file system mounted at /etc/dir1/testzfs1
cd /etc/dir1/testzfs1
- Read the archive file into the zFS file system mounted at /etc/dir1/testzfs1
pax -rv -p e -f /tmp/zfs1.pax