backup-script/backup.sh

13 lines
289 B
Bash

#!/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
tar -cvJpf - $data | openssl enc -e --aes256 --out - | split -d -b $disk - out/backup.tar.xz.enc.