'How to pass find command out to scp command to copy all directories from the remote server to local directory
I tried to use this command line in Windows: My goal is to find all the directories in [email protected]:/var/log/ for a specific port and download them locally. For the find command, I am excluding all folders which include this name "logFolder".
set outputPath=C:\MyDestination
scp -P 22 -r 'find [email protected]:/var/log/ -type d \( ! -name logFolder \)` %outputPath%
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
