New backup 2025-11-10 16:00:02
This commit is contained in:
parent
e371ac0c31
commit
568a8ee7e2
1 changed files with 2 additions and 2 deletions
|
|
@ -116,7 +116,7 @@ tb-encrypt(){
|
|||
fi
|
||||
path=$(realpath "${1}")
|
||||
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(){
|
||||
if ! [[ -f "${1}" ]];then
|
||||
|
|
@ -129,7 +129,7 @@ tb-decrypt(){
|
|||
echo "${path}"
|
||||
echo "${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 gituntracked='git ls-files . --exclude-standard --others'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue