> V1.1.0 > Commands > Plakar diff
Version v1.1.0

Beta Version

You're viewing documentation for version v1.1.0. Beta versions are subject to changes and may not represent the final stable release. Do not use in production environments.

diff

PLAKAR-DIFF(1)General Commands ManualPLAKAR-DIFF(1)

plakar-diffShow differences between files in a Plakar snapshots

plakar diff[-highlight] [-recursive] snapshotID1[:path1] snapshotID2[:path2]

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:

Apply syntax highlighting to the diff output for readability.
When comparing directories, recursively compare all subdirectories.

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

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.

plakar(1), plakar-backup(1)

July 3, 2025Plakar

Found a bug or mistake in the documentation? Create an issue on GitHub