Streamline CLI
At the moment, with the current CLI, it's not obvious which argument is the archive and which the source/destination. This issue proposes to make this explicit. Here are invocation examples:
-
[-S/--sha256] -s backup/ -f /dev/nst0
performs backup and optionally computes hash -
[-S/--sha256] -d restored/ -f /dev/nst0
restores backup and optionally computes hash -
-S/--sha256 -s backup/
compute hash of directory -
-S/--sha256 -f /dev/nst0
compute hash of archive
New options: --hex
print hash as hex instead of base64