Rsync compress when copying to dyno

This commit is contained in:
mathias 2018-06-10 14:29:31 +03:00
parent 347609627c
commit a23aab2963

View file

@ -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 -Waq -e "ssh -i .key -o StrictHostKeyChecking=no -T -c aes256-ctr -o Compression=no -x" --exclude-from="bin/excludes" serv@kaboom.pw:sync/ .
rsync -Waqz -e "ssh -i .key -o StrictHostKeyChecking=no -T -c aes256-ctr -o Compression=no -x" --exclude-from="bin/excludes" serv@kaboom.pw:sync/ .
if [ ! -d worlds/ ]; then
cp -r reset/worlds/ .