blob: 2b754f0307302af5a8fec4c7e3a555e6e8dad258 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# Backup a directory using GPG.
# Usage: backup-directory directory-name
DIRECTORY="$1"
7z a "$DIRECTORY.7z" "$DIRECTORY"
gpg --encrypt --armor --symmetric --output "$DIRECTORY.7z.asc" "$DIRECTORY.7z"
sha256sum "$DIRECTORY.7z.asc" | cut -c1-64 > "$DIRECTORY.asc.sum"
|