How Do I Copy a Local Directory to a Remote in Linux?
Contents How Do I Copy a Directory to a Remote in Linux? in Order to Copy Directory on Linux to Remote Location, You Can Execute the “Scp” Command with the...
How do I copy a directory to a remote in Linux?
In order to copy directory on Linux to remote location, you can execute the “scp” command with the “-r” option for recursive followed by the directory to be copied and the destination folder. As an example, let’s say that we want to copy the “/etc” directory to a backup server located at 192.168.
Must Read
How do I scp a folder from local to remote?
To copy a directory (and all the files it contains), use scp with the -r option. This tells scp to recursively copy the source directory and its contents. You’ll be prompted for your password on the source system ( deathstar.com ). The command won’t work unless you enter the correct password.