Backup & Encrypt: A simple bash script that backs up a user-defined folder into a user-defined folder, compressing the contents, encrypting the .tar with GPG then deleting the unencrypted .tar, leaving an encrypted backup.
Usage:
./backup2.sh [/absolute/path/to/backup-folder] [/absolute/path/to/destination-folder]
- Must use absolute paths!
- Enter your PGP key when prompted.
If no arguments given:
- Enter your source folder when prompted.
- Enter your destination folder when prompted.
- Enter your PGP key when prompted.