Can use with utility_encryption_age_encrypt_tar_gz with utility_encryption_age_encrypt_tar_gz ~/secrets ~/secrets -p.
Where:
The first ~/secrets is the source folder to encrypt.
The second ~/secrets is the path to the encrypted version of the folder -- Except that tar.gz.age would be automatically be added to the end, so that the actual path of the encrypted folder is ~/secrets.tar.gz.age.
-p is an argument to the age encryption program, in this case -p stands for encrypt with a passphrase (which the user will be prompted to type).
Also it should be noted that the user would then have to manually delete the ~/secrets folder (can backup to a source outside of the server before deleting with scp) -- Have to manually delete to ensure critical files are not accidentally deleted.
Ex:
utility_encryption_age_encrypt_tar_gz
withutility_encryption_age_encrypt_tar_gz ~/secrets ~/secrets -p
.~/secrets
is the source folder to encrypt.~/secrets
is the path to the encrypted version of the folder -- Except thattar.gz.age
would be automatically be added to the end, so that the actual path of the encrypted folder is~/secrets.tar.gz.age
.-p
is an argument to theage
encryption program, in this case-p
stands for encrypt with a passphrase (which the user will be prompted to type).~/secrets
folder (can backup to a source outside of the server before deleting withscp
) -- Have to manually delete to ensure critical files are not accidentally deleted.