1

Is it possible to copy a non-empty directory from a local to remote system? with SCP command or another thing?

3 Answers3

2

Yes you can, you just need to add -r flag for directories. You can check scp manual online scp manual or you can check this stackoverflow link

SadatD
  • 160
  • 7
1

It is easy :)

The command to copy a directory is much like as when copying files. The only difference is that you need to use the -r flag for recursive.

To copy a directory from a local to remote system, use the -r option: enter image description here

1

The -r flag should solve your problem according to the man pages.

YoshiMbele
  • 767
  • 1
  • 12