From 130cf1d8306f55bc16a4dd8ce1718421d6913687 Mon Sep 17 00:00:00 2001 From: idarlund Date: Wed, 11 Jul 2018 14:56:55 +0200 Subject: [PATCH] Update rsync added rsync over ssh cheat --- cheat/cheatsheets/rsync | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheat/cheatsheets/rsync b/cheat/cheatsheets/rsync index 43343b6..22b5ea9 100644 --- a/cheat/cheatsheets/rsync +++ b/cheat/cheatsheets/rsync @@ -12,3 +12,6 @@ rsync -auv /src/foo /dest # Explicitly copy /src/foo to /dest/foo rsync -auv /src/foo/ /dest/foo + +# Copy file from local to remote over ssh with non standard port 1234 to destination folder in remoteuser's home directory +rsync -avz -e "ssh -p1234" /source/file1 remoteuser@X.X.X.X:~/destination/