Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

scp copy hidden files

scp -rp src/. user@server:dest/

//That should absolutely match hidden files. The / at the end of the source says "every file under this directory". Nevertheless, testing and research bear you out. This is stupid behavior.
//The "answer" is to append a dot to the end of the source:
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #scp #copy #hidden #files
ADD COMMENT
Topic
Name
6+1 =