backup-script/restore.sh
2025-02-11 14:09:43 -05:00

9 lines
200 B
Bash

#!/bin/bash
mkdir restore
echo "directory of the encrypted tar files"
read dir
sha256sum -c backup-CHECKSUM
cat $dir/backup.tar.xz* | openssl enc -d --aes256 -pbkdf2 --in - | XZ_OPT=-8 tar -xvJpf -