#!/bin/bash mkdir restore echo "directory of the encrypted tar files" read dir cat $dir/backup.tar.xz.enc.* | openssl enc -d --aes256 --in - | tar -xvjpf - -C restore/