Sample Header Ad - 728x90

Checksum or validate .tar file contents with directory in shell

1 vote
0 answers
665 views
Scenario: Using Linux shell to back up a directory of many sub files and compressing the data with ‘tar -cvpJf filename.tar /savedir/’. Goal: Using shell — checksum or validate the newly created ‘.tar’ against the original directory. Limitations: Solution cannot involve downloading 3rd party support libraries. User cannot be part of the process. Comments: Basically, I am wondering if there is a tar flag I am missing that will validate upon creation of the tar, or maybe I can pipe the tar into some process?
Asked by CosmicFiasco (11 rep)
Jul 22, 2021, 06:24 PM