backup-script/backup.sh

12 lines
227 B
Bash
Raw Normal View History

2024-08-04 15:25:17 -04:00
#!/bin/bash
echo "enter data directory"
read data
echo "enter size of backup media"
2025-01-19 17:26:08 -05:00
echo "format: 24G"
2024-08-04 15:25:17 -04:00
read disk
mkdir -p out
tar -cvzpf - $data | openssl enc -e --aes256 --out - | split -d -b $disk - out/backup.tar.gz.enc.