diff --git a/scripts/mirror.sh b/scripts/mirror.sh index c381ee8..0aaa89b 100644 --- a/scripts/mirror.sh +++ b/scripts/mirror.sh @@ -17,6 +17,6 @@ chmod 600 tmp/server_key echo "$SSH_KEY" > tmp/server_key cp -r www/* repo/ log "Uploading to $SERVER..." -rsync -Pcuav --delete -e "ssh -p 22 -oStrictHostKeyChecking=no -i tmp/server_key" repo/* "$USER@$SERVER:$DIR/staging" -ssh -p 22 -oStrictHostKeyChecking=no -i tmp/server_key "$USER@$SERVER" "rsync -a --delete --link-dest='$DIR/staging' '$DIR/staging/'* '$DIR/live'" +rsync -Pcuav --delete -e "ssh -p 22 -oStrictHostKeyChecking=no -i tmp/server_key" repo/. "$USER@$SERVER:$DIR/staging" +ssh -p 22 -oStrictHostKeyChecking=no -i tmp/server_key "$USER@$SERVER" "rsync -a --delete --link-dest='$DIR/staging' '$DIR/staging/.' '$DIR/live'" rm tmp/server_key