Table of Contents
find . | cpio -vpdm ~+1
Duplicate volume:
find . -xdev -depth -print | cpio -apdm ~+1 !! 2>&1 | grep -v 'newer or same age'
-v, --verbose
List the files processed, or with -t, give an `ls -l' style ta-
ble of contents listing. In a verbose table of contents of a
ustar archive, user and group names in the archive that do not
exist on the local system are replaced by the names that corre-
spond locally to the numeric UID and GID stored in the archive.-V --dot
Print a "." for each file processed.In copy-out mode, cpio copies files into an archive. It reads a list of filenames, one per line, on the standard input, and writes the archive onto the standard output.
In copy-in mode, cpio copies files out of an archive or lists the archive contents. It reads the archive from the standard input. Any non-option command line arguments are shell globbing patterns; only files in the archive whose names match one or more of those patterns are copied from the archive. Unlike in the shell, an initial '.' in a filename does match a wildcard at the start of a pattern, and a '/' in a filename can match wildcards. If no patterns are given, all files are extracted.
In copy-pass mode, cpio copies files from one directory tree to another, combining the copy-out and copy-in steps without actually using an archive. It reads the list of files to copy from the stan- dard input; the directory into which it will copy them is given as a non-option argument.
-0, --null
In copy-out and copy-pass modes, read a list of filenames ter-
minated by a null character instead of a newline, so that
files whose names contain newlines can be archived. GNU find
is one way to produce a list of null-terminated filenames.-a, --reset-access-time
Reset the access times of files after reading them, so that it
does not look like they have just been read.-A, --append
Append to an existing archive. Only works in copy-out mode.
The archive must be a disk file specified with the -O or -F
(--file) option.-c Identical to "-H newc", use the new (SVR4) portable format.
-d, --make-directories
Create leading directories where needed.-E FILE, --pattern-file=FILE
In copy-in mode, read additional patterns specifying filenames
to extract or list from FILE. The lines of FILE are treated
as if they had been non-option arguments to cpio.-i, --extract
Run in copy-in mode.-l, --link
Link files instead of copying them, when possible.-L, --dereference
Dereference symbolic links (copy the files that they point to
instead of copying the links).-m, --preserve-modification-time
Retain previous file modification times when creating files.--no-absolute-filenames
In copy-in mode, create all files relative to the current
directory, even if they have an absolute file name in the
archive.-o, --create
Run in copy-out mode.-p, --pass-through
Run in copy-pass mode.-v, --verbose
List the files processed, or with -t, give an `ls -l' style
table of contents listing.-V --dot
Print a "." for each file processed.