backup-script/backup.sh

12 lines
227 B
Bash
Raw Permalink 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"
echo "format: 25G"
read disk
mkdir -p out
tar -cvzpf - $data | openssl enc -e --aes256 --out - | split -d -b $disk - out/backup.tar.gz.enc.