TARPATCH(1) | General Commands Manual | TARPATCH(1) |
tarpatch
—
tarpatch |
[-m mtree]
[-r rollbacktar]
delta |
tarpatch
utility verifies and applies the changes in
a delta archive delta computed by
tardiff(1) to the directory tree rooted at the working
directory.
tarpatch
does not delete files — it
only creates new ones or modifies existing ones. Use another tool such as
postinstall(8) to delete files that are no longer
needed.
The following options are supported:
-m
mtree-m
option passed to
tardiff(1), in order to verify that the mtree file
itself was correctly updated.-r
rollbacktarWith the -r
option,
tarpatch
is idempotent. Additionally, the patch
can be rolled back by extracting rollbacktar with
tar(1). Note: tarpatch
will
first create the file
⟨rollbacktar⟩.tmp,
and then rename it to rollbacktar, in order to
create rollbacktar atomically in case of
interruption.
tarpatch
is not atomic — programs running at the
same time may see the directory tree only partially patched, and, if writing
to the tree, may corrupt the rollback archive. Consider working in a
zfs(8) clone.
tarpatch
is new and may have bugs. Take
and test backups regularly.
January 5, 2021 | NetBSD 9.1_STABLE |