New backup 2024-05-16 22:00:02

This commit is contained in:
Penelope Gwen 2024-05-16 22:00:02 -06:00
parent d91d69d8bc
commit 36708cfacb

View file

@ -4,12 +4,17 @@ current_hostname=$(hostname)
case $current_hostname in case $current_hostname in
"pogmommy-apple-a2337") "pogmommy-apple-a2337")
alacritty -e ssh -A pogmommy-omen-328p1aa ssh_dest="pogmommy-omen-328p1aa"
;; ;;
"pogmommy-omen-328p1aa") "pogmommy-omen-328p1aa")
alacritty -e ssh -A pogmommy-apple-a2337 ssh_dest="pogmommy-apple-a2337"
;; ;;
*) *)
# Code to execute if expression does not match any of the above patterns # Code to execute if expression does not match any of the above patterns
;; ;;
esac esac
alacritty -e bash -c '\
eval $(ssh-agent) &> /dev/null; \
ssh-add ~/.ssh/id_ed25519 &> /dev/null; \
ssh -A '"${ssh_dest}"