scripts: hostname changes
This commit is contained in:
parent
761830ed04
commit
add1413e08
@ -12,4 +12,4 @@ rsync -avzP \
|
|||||||
--exclude=proj \
|
--exclude=proj \
|
||||||
--exclude=vms \
|
--exclude=vms \
|
||||||
--exclude=pix/hdri \
|
--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
|
# Setup ssh agent to avoid repeated password prompts
|
||||||
eval `ssh-agent -s`
|
eval `ssh-agent -s`
|
||||||
|
|
||||||
ssh-add ~/.ssh/keys/beryllium
|
ssh-add ~/.ssh/keys/gamma
|
||||||
|
|
||||||
if [ $ACTION = PUSH ]
|
if [ $ACTION = PUSH ]
|
||||||
then
|
then
|
||||||
rsync -avPzc ~/med/memes/woof/ boron:~/med/memes/woof
|
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
|
fi
|
||||||
|
|
||||||
if [ $ACTION = RECV ]
|
if [ $ACTION = RECV ]
|
||||||
then
|
then
|
||||||
# Move files to the quarantine zone for categorisation and renaming
|
# Move files to the quarantine zone for categorisation and renaming
|
||||||
|
|
||||||
rsync -avPzc beryllium:~/storage/pictures/Infinity/ ~/med/memes/woof/quar && \
|
rsync -avPzc gamma:~/storage/pictures/Infinity/ ~/med/memes/woof/quar && \
|
||||||
ssh beryllium "rm -I storage/pictures/Infinity/*"
|
ssh gamma "rm -I storage/pictures/Infinity/*"
|
||||||
|
|
||||||
rsync -avPzc beryllium:~/storage/movies/Infinity/ ~/med/memes/woof/quar && \
|
rsync -avPzc gamma:~/storage/movies/Infinity/ ~/med/memes/woof/quar && \
|
||||||
ssh beryllium "rm -I storage/movies/Infinity/*"
|
ssh gamma "rm -I storage/movies/Infinity/*"
|
||||||
|
|
||||||
# Kill ssh agent
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Kill ssh agent
|
||||||
kill $SSH_AGENT_PID
|
kill $SSH_AGENT_PID
|
||||||
|
Loading…
Reference in New Issue
Block a user