On 08/12/2014 08:35 PM, Stephen Powell wrote:
On Tue, 12 Aug 2014 15:19:16 -0400 (EDT), Martin Smith wrote:On 11/08/2014 12:16, Stephen Powell wrote:On Mon, 11 Aug 2014 01:15:31 -0400 (EDT), Reco wrote:... cp -a /var/www/* /media/lin50This may work if there are no "hidden" files in the directory (files whose names begin with a period), and if there are no files with embedded blanks in their names, etc. But as a more general approach, I suggest cp -a /var/www/. /media/lin50 The above handles all of the aforementioned special cases. This copies the entire directory tree below /var/www, including subdirectories, which I assume is the OP's intent.pax will do the job, but you will need to install it: cd /var/www pax -rw . /media/lin50That decision is up to the OP; but if it were me, I probably wouldn't install pax. Why install another package when a command from a required package that is already installed does the job just fine? cp -a /var/www/. /media/line50 is all one needs.
I brought up the man pax page on the internet, and it looks like the "e" in the command would be valid, altho the man page is dense and hard for me to understand. But i looked because there is a discrepancy between the last two examples. Would one of the posters like to comment? --doug