Wednesday 29 April 2020

How to tar with a password in ubuntu

tar with a password:
tar czvf - directory | gpg --symmetric --cipher-algo aes256 -o directory.tar.gz.gpg

untar with a password:
gpg -d directory.tar.gz.gpg | tar xzvf -

No comments:

Post a Comment