added scripts
This commit is contained in:
commit
b7e9e051b0
11
backup.sh
Normal file
11
backup.sh
Normal 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
6
restore.sh
Normal 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 -
|
Loading…
Reference in New Issue
Block a user