3 Linux
Markus Bergholz edited this page 1 month ago

Encrypt and decrypt tar files

encrypt

#!/bin/bash

sudo tar -I zstd -cf - data | age -R <path>/ssh.pub | AWS_PROFILE=backup aws s3 cp - s3://<bucket>/<data>.tar.zst.enc                                              

decrypt