PLAKAR-DIFF(1)

NAME
plakar diff - Show differences between files in a Plakar snapshots

SYNOPSIS
plakar [-highlight] snapshotID1[:path1] snapshotID2[:path2]

DESCRIPTION
The plakar 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.

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

0   Command completed successfully.

>0  An error occurred, such as invalid snapshot IDs, missing files, or an unsupported file type.

SEE ALSO
plakar(1), plakar-backup(1)