New backup 2025-11-10 16:00:02

This commit is contained in:
Penelope Gwen 2025-11-10 16:00:02 -08:00
parent e371ac0c31
commit 568a8ee7e2

View file

@ -116,7 +116,7 @@ tb-encrypt(){
fi fi
path=$(realpath "${1}") path=$(realpath "${1}")
bn=$(basename "${path}") bn=$(basename "${path}")
tar -czf - "${1}" | openssl enc -e -pbkdf2 -out "${bn}-$(date +%Y-%m-%d_%H%M%S).tar.gz.enc" tar -czf - "${1}" | openssl enc -e -aes256 -out "${bn}-$(date +%Y-%m-%d_%H%M%S).tar.gz.enc"
} }
tb-decrypt(){ tb-decrypt(){
if ! [[ -f "${1}" ]];then if ! [[ -f "${1}" ]];then
@ -129,7 +129,7 @@ tb-decrypt(){
echo "${path}" echo "${path}"
echo "${bn}" echo "${bn}"
mkdir "${bn%%.*}" mkdir "${bn%%.*}"
openssl enc -d -pbkdf2 -in "${1}" | tar xz -C "${bn%%.*}" openssl enc -d -aes256 -in "${1}" | tar xz -C "${bn%%.*}"
} }
alias quickdeb='dpkg-buildpackage -b -tc' alias quickdeb='dpkg-buildpackage -b -tc'
alias gituntracked='git ls-files . --exclude-standard --others' alias gituntracked='git ls-files . --exclude-standard --others'