scripts: hostname changes

This commit is contained in:
dogeystamp 2022-05-10 21:52:40 -04:00
parent 761830ed04
commit add1413e08
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 9 additions and 9 deletions

View File

@ -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/

View File

@ -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