|
Article ID: 513
Last updated: 14 Jan, 2026
For transfers between two host systems within the NAS enclave—for example, from a PFE to an LFE—the syntax for the shiftc command is nearly the same as that of local transfers. Note: If source and destination paths are not specified on the command line, any number of source/destination combinations will be read from stdin (one combination per line).
For information about Shift options, including those used in the examples in this article, see Shift Command Options. Transferring Files Within the EnclaveThe examples in this section show you how to transfer files between two hosts within the enclave. Note: The first example includes output; subsequent examples show only the command line. Perform basic host-to-host transfers (for example, /u/username/file1 on pfe21 to your data/dir2 directory on Lou):
TIP: If you have a small transfer that will complete quickly, using the --wait option will provide a helpful indication that your transfer is complete—you'll know it's done as soon as your prompt returns. Also, if you include shiftc in a script, using the --wait option will prevent the next step in the script from starting until the transfer is complete.
The next two examples show this option.
Creating and Extracting Tar Files Within the EnclaveYou can use Shift to transfer a directory and write it into a tar file it in one step, resulting in a portable tar file that can be read by either shiftc or tar. In the same step, you can also create a table-of-contents (.toc) file that lists the files contained in the archive along with their sizes and attributes (recommended). Because of their sequential nature, tar files cannot be efficiently updated in place. As a workaround, incremental tar files can be used, which are separate tar files that consist of files updated after the time the original or subsequent incremental updates were created. Creating Tar FilesThis example creates a tar file (dir1.tar) of the dir1 directory in /nobackup/user1 directly into your Lou home directory, along with a corresponding table of contents (dir1.tar.toc):
Note: If the dir1 directory is over 1 TB, it will be split into multiple tar files prefixed with dir1. Creating Incremental Tar FilesThe examples in this section show you how to create incremental tar files from one host to another within the enclave.
Extracting Tar FilesThese examples show you how to extract tar files from one host to another within the enclave.
Also read
|