scp -r doesn't copy the directories, only files
Posted: Wed Feb 04, 2015 10:18 am
I've used scp -r root@xxx.xxx.xxx.xxx:/var/www/*.* .
to copy down all the directories and files from the directory www, but it only copies the files. What am I missing?
Maybe it's the *.* part that is making it files only, instead of directories? I am running it now without the *.* and since there are so many files, I have to wait and see if it creates the directories.
Maybe this?
scp -r root@xxx.xxx.xxx.xxx:/var/www/ .
Cecil
to copy down all the directories and files from the directory www, but it only copies the files. What am I missing?
Maybe it's the *.* part that is making it files only, instead of directories? I am running it now without the *.* and since there are so many files, I have to wait and see if it creates the directories.
Maybe this?
scp -r root@xxx.xxx.xxx.xxx:/var/www/ .
Cecil