mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-11-20 06:15:44 +00:00
Optimize rsync
This commit is contained in:
parent
488d42bd81
commit
09b794dfa1
1 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ touch banned-ips.json banned-ips.json.backup banned-players.json banned-players.
|
|||
echo "$PRIVATE_KEY" > .key
|
||||
chmod -R 500 crash-reports/ dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/ plugins/Updater/
|
||||
chmod 400 'find . -type f'
|
||||
rsync -avz -e "ssh -i .key -o StrictHostKeyChecking=no" --exclude-from="bin/excludes" serv@kaboom.pw:sync/ .
|
||||
rsync -Waqz -e "ssh -i .key -o StrictHostKeyChecking=no -N -T -c arcfour -o Compression=no -x" --exclude-from="bin/excludes" serv@kaboom.pw:sync/ .
|
||||
|
||||
if [ ! -d worlds/ ]; then
|
||||
cp -r reset/worlds/ .
|
||||
|
@ -15,12 +15,12 @@ fi
|
|||
|
||||
while true; do
|
||||
bin/inotifywait -r -e modify,attrib,close_write,move,create,delete .
|
||||
rsync -avz -e "ssh -i .key -o StrictHostKeyChecking=no" --exclude-from="bin/excludes" plugins worlds serv@kaboom.pw:sync/ > /dev/null 2>&1
|
||||
rsync -Waqz -e "ssh -i .key -o StrictHostKeyChecking=no -N -T -c arcfour -o Compression=no -x" --exclude-from="bin/excludes" plugins worlds serv@kaboom.pw:sync/ > /dev/null 2>&1
|
||||
sleep 1
|
||||
done &
|
||||
|
||||
while true; do
|
||||
ssh -i .key -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o ServerAliveCountMax=9999 -S none -N -T -R 64518:localhost:25565 serv@kaboom.pw > /dev/null 2>&1
|
||||
ssh -i .key -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o ServerAliveCountMax=9999 -f -S none -N -T -R 64518:localhost:25565 serv@kaboom.pw > /dev/null 2>&1
|
||||
sleep 1
|
||||
done &
|
||||
|
||||
|
@ -29,4 +29,4 @@ while true; do
|
|||
sleep 1
|
||||
done &
|
||||
|
||||
sleep infinity
|
||||
sleep infinity
|
||||
|
|
Loading…
Reference in a new issue