From add1413e08a248ed3420287c4630848c2e551cc5 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Tue, 10 May 2022 21:52:40 -0400 Subject: [PATCH] scripts: hostname changes --- src/.local/bin/bk.sh | 2 +- src/.local/bin/msync | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/.local/bin/bk.sh b/src/.local/bin/bk.sh index 1a609ca..814f60e 100755 --- a/src/.local/bin/bk.sh +++ b/src/.local/bin/bk.sh @@ -12,4 +12,4 @@ rsync -avzP \ --exclude=proj \ --exclude=vms \ --exclude=pix/hdri \ - ~/med ~/dox dogeystamp@patria:/mnt/disk/uv/ + ~/med ~/dox dogeystamp@lambda:/mnt/disk/uv/ diff --git a/src/.local/bin/msync b/src/.local/bin/msync index 17c230b..f3d4678 100755 --- a/src/.local/bin/msync +++ b/src/.local/bin/msync @@ -13,28 +13,28 @@ done # Setup ssh agent to avoid repeated password prompts eval `ssh-agent -s` -ssh-add ~/.ssh/keys/beryllium +ssh-add ~/.ssh/keys/gamma if [ $ACTION = PUSH ] then rsync -avPzc ~/med/memes/woof/ boron:~/med/memes/woof - rsync -avPzc ~/med/memes/woof/ beryllium:~/med/memes/woof + rsync -avPzc ~/med/memes/woof/ gamma:~/med/memes/woof - rsync -avPzc --delete ~/med/mus/ beryllium:~/storage/music + rsync -avPzc --delete ~/med/mus/ gamma:~/storage/music fi if [ $ACTION = RECV ] then # Move files to the quarantine zone for categorisation and renaming - rsync -avPzc beryllium:~/storage/pictures/Infinity/ ~/med/memes/woof/quar && \ - ssh beryllium "rm -I storage/pictures/Infinity/*" + rsync -avPzc gamma:~/storage/pictures/Infinity/ ~/med/memes/woof/quar && \ + ssh gamma "rm -I storage/pictures/Infinity/*" - rsync -avPzc beryllium:~/storage/movies/Infinity/ ~/med/memes/woof/quar && \ - ssh beryllium "rm -I storage/movies/Infinity/*" + rsync -avPzc gamma:~/storage/movies/Infinity/ ~/med/memes/woof/quar && \ + ssh gamma "rm -I storage/movies/Infinity/*" - # Kill ssh agent fi +# Kill ssh agent kill $SSH_AGENT_PID