3.3.2 Copy a File

You can copy a file from your local filesystem into Exascale, or you can copy a file from Exascale into your local filesystem.
Before you copy a file into Exascale, you might want to first create an empty copy of the file so that you can specify the file storage attributes.

To copy files between the local filesystem and Exascale, you can use either the XSH cp command or the ESCLI putfile and getfile commands. However, XSH uses a more direct I/O path that provides better copy performance, making XSH the recommended option for copying large data files.

Copy a File from the Local Filesystem to Exascale

The following XSH command copies /home/my-file to @my-vault-name/my-file-copy in Exascale.

$ xsh cp /home/my-file @my-vault-name/my-file-copy

The equivalent ESCLI command is:

@> putfile /home/my-file @my-vault-name/my-file-copy

Copy a File from Exascale to the Local Filesystem

The following XSH command copies @my-vault-name/my-file from Exascale to /home/my-file-copy on the local file system.

$ xsh cp @my-vault-name/my-file /home/my-file-copy

The equivalent ESCLI command is:

@> getfile @my-vault-name/my-file /home/my-file-copy