|
|
HP-UX Reference > Ddcopy(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEdcopy — copy HFS file system with compaction. SYNOPSIS/usr/sbin/dcopy [-d] [-f fsize[:isize ]] [-F hfs] [-scyl:skip ] [-v] [-V] source_fs destination_fs DESCRIPTIONThe dcopy command copies an existing HFS file system (source_fs) to a new HFS file system (destination_fs), appropriately sized to hold the reorganized results. For best results, the source file system should be a raw device, and the destination file system should be a block device. Always run dcopy on unmounted file systems. (In the case of the root file system, copy it to a new minidisk.) If no options are specified, dcopy copies files from source_fs, compressing directories by removing vacant entries and spacing consecutive blocks in a file by the optimal rotational gap. If options such as -f or -s are specified, the destination file system structure will be different from that of the source file system. dcopy makes the destination file system identical to the source file system and preserves the pack and volume labels. Thus, to compress a file system without moving it, use dcopy to copy the files to another file system and the dd command to copy the file back (see dd(1)). Directory compression is accomplished by running dcopy on the primary copy of the file system and allowing the modified directories to propagate to the other copies of the file system in the normal manner. Optionsdcopy recognizes the following options:
EXAMPLESdcopy can be executed with or without options. If no options are specified as in this example, the source and destination file systems are identical. Any differences between the two file systems lie only in the available disk space. dcopy /dev/rdsk/c2d0s4 /dev/dsk/c2d0s5 If options are specified, expect a major difference between the source and destination file system structure:
|
|