Go to main content

Managing ZFS File Systems in Oracle® Solaris 11.4

Exit Print View

Updated: February 2021

Copying ZFS Files

You can quickly copy large files using the cp -z command. The –z option copies the metadata associated with each record, rather than copying the metadata and all of the data. For files with record sizes of 4K or more, this method can be much faster than using the standard cp command. It is also very useful if you need to make many copies of one large file, like an OS image. See the reflink(3C) man page for more information.