Supposed local folder as below:
/test/subfolder /test/subfolder/file1.txt /test/subfolder/page1.htm /test/subfolder/page2.htm /test/.hiddenfolder /test/./hidenfolder/file2
How to exclude .hiddenfolder to be transfer when executing "scp -r test user@ip:/"?
How to include *.htm files only and transfer them to corresponding subfolder on remote server?
Any other commands can do this job more easily?