#!/bin/bash echo "enter full path to data directory" echo "if adding multiple directorys add a space" read data echo "enter size of backup media" echo "format: 24G" read disk mkdir -p out XZ_OPT=-8 tar -cvJpf - $data | openssl enc -e --aes256 -pbkdf2 --out - | split -d -b $disk - out/backup.tar.xz && sha256sum out/backup.tar.xz* >> backup-CHECKSUM