~carloabelli/bin

bin/encrypt-dir -rwxr-xr-x 185 bytes
2c82710aCarlo Abelli Add license 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if [ "$#" -ne 2 ]; then
    echo "usage: $0 dir pub_key" >&2
    exit 1
fi

dir="$1"
pub_key="$2"

XZ_DEFAULTS="-T 0" tar -cvJ "$dir" | age -r "$pub_key" > "$dir.tar.xz.age"