Copy directory using scp
Scp usage
It is easy to use scp, however how do you copy a directory, without copying the directory name?
Solution :
scp -r public@10.64.6.11:/home/public/site/* /var/www/
About this
If you write /* a the end of the folder, it will not copy the folder name at the destination, just the content and subdirectories of the folder directly.
If you do not write it, it will copy the folder site with all its content in the destination like this /var/www/site/
Et Voilà !
Recent Comments