The diff
command compares the same file in two different snapshots if a file is given, otherwise compares the two snapshots.
Click here for a list of related forum topics.
Quick overview
NAME:
duplicacy diff - Compare two snapshots or two revisions of a file
USAGE:
duplicacy diff [command options] [<file>]
OPTIONS:
-id <snapshot id> diff snapshots with the specified id
-r <revision> [+] the revision number of the snapshot
-hash compute the hashes of on-disk files
-storage <storage name> retrieve files from the specified storage
-key <private key> the RSA private key to decrypt file chunks
-key-passphrase <passphrase> the passphrase to decrypt the RSA private key
Usage
duplicacy diff [command options] [<file>]
Options
-id <snapshot id>
You can specify a different snapshot id rather than the default snapshot id.
-r <revision> [+]
If only one revision is given by -r
, the right hand side of the comparison will be the on-disk file.
-hash
The -hash
option can then instruct this command to compute the hash of the file.
-storage <storage name>
You can use the -storage
option to select a different storage other than the default one.
-key <private key>
and -key-passphrase <passphrase>
If the storage is encrypted by an RSA public key, the corresponding private key is needed to diff a file.
Note
The file must be specified with a path relative to the repository.
Meaning of the symbols used in the output
Command:
duplicacy diff -r 10 -r 11
+ is for a file in -r 11 but not in -r 10
- is for a file in -r 10 but not in -r 11
When a file has changed:
space is for the version of the file in -r 10
* is for the version of the file in -r 11