Skip to content

Commit 12d065c

Browse files
committed
measure scp GA
1 parent 36748d3 commit 12d065c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/deploy-nginx.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ ssh $REMOTE_HOST "cd $REMOTE_PATH && \
3434
# Copy new contents, 320 MB
3535
# Using scp -rq, slowest, not resumable
3636
# scp -rq $LOCAL_PATH/* $REMOTE_HOST:$REMOTE_PATH
37+
time scp -rq $LOCAL_PATH/* $REMOTE_HOST:$REMOTE_PATH
3738

3839
# Using rsync, fastest, resumable, deletes without clearing, lot faster with reusing unchanged files (--delete)
39-
rsync -az --delete --info=stats2,progress2 $LOCAL_PATH/ $REMOTE_HOST:$REMOTE_PATH
40+
# rsync -az --delete --info=stats2,progress2 $LOCAL_PATH/ $REMOTE_HOST:$REMOTE_PATH
4041

4142
# Using tar, fast for cleaned dir
4243
# tar cf - -C "$LOCAL_PATH" . | ssh "$REMOTE_HOST" "tar xvf - -C $REMOTE_PATH"

0 commit comments

Comments
 (0)