Archive and Restore Files in a Single Step Using the Connect:Direct® for UNIX Pipe I/O Function

This Process changes the pnode directory to the se subdirectory, archives all the *.c files in the se subdirectory using the tar command, then transfers the archive to the snode. At the snode, this Process changes the directory to the testdir subdirectory and extracts the *.c files from the archive using the tar -xf command. No checkpointing occurs when pipe=yes is specified.

pipe_ex3  process      snode=testcdu
step01    copy  from  (file=“cd se; tar -cf - *.c”
                       pnode sysopts=“:pipe=yes:”)
                to    (file=“cd testdir; tar -xf -”
                       snode sysopts=“:pipe=yes:”)