undamage - Marks archive entries as undamaged and unstaled
∕opt∕SUNWsamfs∕sbin∕undamage
-c
copy_no
[-f
]
[-m
media_type [-v
vsn]]
[-M
]
filename …
∕opt∕SUNWsamfs∕sbin∕undamage
[-c
copy_no]
[-f
]
-m
media_type [-v
vsn]
[-M
]
filename …
∕opt∕SUNWsamfs∕sbin∕undamage
-c
copy_no
[-f
]
[-m
media_type [-v
vsn]]
[-M
]
-r
dirname …
filename …
∕opt∕SUNWsamfs∕sbin∕undamage
[-c
copy_no]
[-f
]
-m
media_type [-v
vsn]
[-M
]
-r
dirname …
filename …
SUNWsamfs
The undamage
command marks archive entries for one or more
files or directories as undamaged and not stale
based on the
archive copy number and∕or the media type and VSN specified.
The undamage
command
also marks the file(s) themselves as undamaged.
There are several ways to mark one or more archive entries as undamaged. These ways are as follows:
By copy number
By copy number, media type, and VSN
By copy number and media type
By media type
By media type and VSN
This command accepts the following options:
-c
copy_noMarks the specified archive copy number as undamaged.
If one or more -c
options are
are specified, only those archive copies (copies 1, 2, 3, or 4)
are marked as undamaged.
Specify 1
, 2
, 3
, or 4
for copy_no.
Either a -c
or a -m
option must be specified.
-f
Suppresses errors.
-m
media_typeMarks all copies from the specified media_type as undamaged.
For the list of possible media_type specifications, see the
mcf
(4) man page.
Either a -c
or a -m
option must be specified.
If you specify a -m
option, you can also specify
a -v
option.
-M
Marks only metadata as undamaged.
This includes directories, the segment index,
and removable-media files.
Regular files are not marked as undamaged.
If you are marking a directory as undamaged, you must specify
the -M
option.
-r
dirname …Recursively marks one or more specified dirnames and subdirectories as undamaged. The archive entries of files in the directories and subdirectories are marked as undamaged.
-v
vsnMarks the archive copies on vsn as undamaged.
For vsn, specify a volume serial name (VSN).
If you specify a -v
option, you must also specify
a -m
option.
Marks the archive entries for one or more specified filename arguments as undamaged.
The following command marks all archive copies of myfile
as
undamaged:
# undamage -c1 -c2 -c3 -c4 myfile