[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dd



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/lin50
>> 
>> This 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/lin50

That 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.

-- 
  .''`.     Stephen Powell    
 : :'  :
 `. `'`
   `-


Reply to: