Update restore.sh

This commit is contained in:
batvin321 2025-01-19 18:22:48 -05:00
parent c05f2d2110
commit 1f5c9738be

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
mkdir -p restore mkdir restore
echo "directory of the encrypted tar files" echo "directory of the encrypted tar files"
read dir read dir
cat $dir/backup.tar.gz.enc.* | openssl enc -d --aes256 --in - | tar -xvzpf - restore/ cat $dir/backup.tar.gz.enc.* | openssl enc -d --aes256 --in - | tar -xvzpf - -C restore/