To copy a folder from a remote server to local server:
1 |
scp -r root@your.server:/path/to/folder /home/user/Desktop/ |
To copy a folder from local to a remote server@
1 |
scp -r ./path/to/folder root@your.server:/home/user/Desktop/ |
From man scp
-r Recursively copy entire directories
Fonte: http://community.webcorecloud.com/tutorials/linux_specific_articles/how_to_copy_a_folder_recursively_from_one_host_to_/
Facebook Comments