DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

dcopy(ADM)


dcopy -- copy UNIX filesystems for optimal access time

Syntax

/etc/dcopy [ -sX ] [ -an ] [ -d ] [ -v ] [ -ffsize [ :isize ]] inputfs outputfs

Description

The dcopy command copies filesystem inputfs to outputfs. inputfs is the device file for the existing file system; outputfs is the device file to hold the reorganized result. This utility is for UNIX filesystems only. For the most effective optimization, inputfs should be the raw device and outputfs should be the block device. Both inputfs and outputfs should be unmounted file systems.

With no options, dcopy copies files from inputfs, compressing directories by removing vacant entries, and spacing consecutive blocks in a file by the optimal rotational gap. The possible options are:


-sX
supply device information for creating an optimal organization of blocks in a file. The forms of X are the same as the -s option of fsck(ADM).

-an
place the files not accessed in n days after the free blocks of the destination file system (default for n is 7). If no n is specified, then no movement occurs.

-d
leave order of directory entries as is (default is to move sub-directories to the beginning of directories).

-v
currently reports how many files were processed, and how big the source and destination freelists are.

-ffsize [ :isize ]
specify the outputfs file system and inode list sizes (in blocks). If the option (or :isize) is not given, the values from the inputfs are used.
dcopy catches interrupts and quits, and reports on its progress. To terminate dcopy send a quit signal, followed by an interrupt or quit.

dcopy also attempts to modify its command line arguments so its progress can be monitored with ps(C).

Warning

Do not use dcopy on AFS or EAFS filesystems (dcopy will corrupt such filesystems). Use dcopy with UNIX (S51K) filesystems only.

See also

fsck(ADM), mkfs(ADM), ps(C)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003