added scripts

This commit is contained in:
batvin321 2024-08-04 15:25:17 -04:00
commit b7e9e051b0
2 changed files with 17 additions and 0 deletions

11
backup.sh Normal file
View File

@ -0,0 +1,11 @@
#!/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.

6
restore.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
echo "directory of the slpit tar file"
read dir
cat $dir/backup.tar.gz.enc.* | openssl enc -d --aes256 --in - | tar -xvzpf -