PLAKAR-DIFF(1) | General Commands Manual | PLAKAR-DIFF(1) |
NAME
plakar-diff
— Show
differences between files in a Plakar snapshots
SYNOPSIS
plakar diff | [-highlight ]
[-recursive ]
snapshotID1[:path1]
snapshotID2[:path2] |
DESCRIPTION
The plakar diff
command compares two
Plakar snapshots, optionally restricting to specific files within them. If
only snapshot IDs are provided, it compares the root directories of each
snapshot. If file paths are specified, the command compares the individual
files. The diff output is shown in unified diff format, with an option to
highlight differences.
The options are as follows:
-highlight
- Apply syntax highlighting to the diff output for readability.
-recursive
- When comparing directories, recursively compare all subdirectories.
EXAMPLES
Compare root directories of two snapshots:
$ plakar diff abc123 def456
Compare across snapshots with highlighting: /etc/passwd
$ plakar diff -highlight abc123:/etc/passwd def456:/etc/passwd
DIAGNOSTICS
The plakar-diff
utility exits 0 on
success, and >0 if an error occurs.
- 0
- Command completed successfully.
- >0
- An error occurred, such as invalid snapshot IDs, missing files, or an unsupported file type.
SEE ALSO
July 3, 2025 | Plakar |