To everyone who responded to me on this thread, thank you for your contributions. Somehow I got past the latest error and now have a functioning script that transfers directories and files from the local host to the remote host.
Hello, now that I can execute the scp command without any key errors, The intent of my scp command is to copy entire directories and the files in those directories from the local host to the remote host. I thought the - r option would take care of that, but that is not happening. Below is a representation of the scp command I am using. The intent is to copy all the directories and files in those directories in the dir2 directory to the dir2 directory on the remote host. Files in dir2 are transferred, just not any directories with their files in dir2.
scp -r /dir1/dir2 userid@remotehost:/dir1/dir2
Do I need to format the scp command differently, or is there something else I need to do?
Thanks
P.S. The word “recursively” is used in the description of the -r option. What does that mean?
Thanks.
@rtb , cannot believe you are asking that, why not use a dictionary (or a search engine) to find the definition of the word , is this some alien concept ?
as a hint - try ls /etc
then ls -R /etc
and see what the differences are
Yea, I did look it up, but I was wondering how that actually worked in a script , because the -r option did not totally work.
Start a new topic to discuss new topics.