Skip to main content
Minor formatting, fix grammar
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

You'd just need to switch the arguments (which represent source and destination) like rsync -av ./newfolder [email protected]:/home/my_folder.

rsync -av ./newfolder [email protected]:/home/my_folder

Have a look at man rsync which explains that a trailing slash after newfolder would only transfer the contentscontents of said directory-  -in in this case, you'dyou might want to change the upload destination to .../my_folder/newfolder.

You'd just need to switch the arguments (which represent source and destination) like rsync -av ./newfolder [email protected]:/home/my_folder. Have a look at man rsync which explains that a trailing slash after newfolder would only transfer the contents of said directory--in this case, you'd might want to change the upload destination to .../my_folder/newfolder.

You'd just need to switch the arguments (which represent source and destination) like

rsync -av ./newfolder [email protected]:/home/my_folder

Have a look at man rsync which explains that a trailing slash after newfolder would only transfer the contents of said directory  - in this case, you might want to change the upload destination to .../my_folder/newfolder.

Source Link

You'd just need to switch the arguments (which represent source and destination) like rsync -av ./newfolder [email protected]:/home/my_folder. Have a look at man rsync which explains that a trailing slash after newfolder would only transfer the contents of said directory--in this case, you'd might want to change the upload destination to .../my_folder/newfolder.