plakar-diff

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

plakar-diffShow differences between files in a Plakar snapshots

plakar diff[-highlight] 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.

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)

Plakar July 3, 2025 PLAKAR-DIFF(1)