Migrate NFS data
Contributors Download PDF of this page
After planning the migration with the
scan commands, you can migrate data.
copy command scans and copies the entire source directory structure to a destination NFSv3 export. The
copy command requires having source and destination paths as variables. The scanned and copied files, throughput/speed, and elapsed time details are displayed at the end of the copy operation
xcp copy -newid <id> src_server:/src_export dst_server:/dst_export
xcp help copy for more details.
resume command restarts a previously interrupted copy operation by specifying the catalog index name or number. The catalog index name or number of the previous copy operation is stored on the
<catalog path>:/catalog/indexes directory.
xcp resume [options] -id <id used for copy>
xcp help resume for more details.
sync command scans for changes and modifications performed on a source NFS directory using a catalog index tag name or the number of a previous copy operation. Source incremental changes are copied and applied to the target directory. The old catalog index numbers are replaced with a new one after the sync operation.
xcp sync [options] -id <id used for copy>
xcp help sync for more details.
verify command uses a full byte-by-byte data comparison between source and target directories after the copy operation without using a catalog index number. The command checks for modification times and other file or directory attributes, including permissions. The command also reads the files on both sides and compares the data.
xcp verify src_server:/src_export dst_server:/dst_export
xcp help verify for more details.