backup-script/restore.sh

8 lines
170 B
Bash
Raw Normal View History

2024-08-04 15:25:17 -04:00
#!/bin/bash
2025-01-19 17:27:33 -05:00
mkdir -p restore
echo "directory of the encrypted tar files"
2024-08-04 15:25:17 -04:00
read dir
2025-01-19 17:27:33 -05:00
cat $dir/backup.tar.gz.enc.* | openssl enc -d --aes256 --in - | tar -xvzpf - restore/