scripts: hostname changes
This commit is contained in:
parent
761830ed04
commit
add1413e08
@ -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/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user