backup-script/backup.sh
2025-01-19 17:26:08 -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 -cvzpf - $data | openssl enc -e --aes256 --out - | split -d -b $disk - out/backup.tar.gz.enc.