backup-script/backup.sh
2025-01-23 15:21:57 -05:00

12 lines
227 B
Bash

#!/bin/bash
echo "enter data directory"
read data
echo "enter size of backup media"
echo "format: 24G"
read disk
mkdir -p out
tar -cvJpf - $data | openssl enc -e --aes256 --out - | split -d -b $disk - out/backup.tar.xz.enc.