On 20100218_130038, Stephen Powell wrote:
> On Wed, 17 Feb 2010 15:04:32 -0500 (EST), Boyd Stephen Smith Jr. wrote:
> > On Wednesday 17 February 2010 13:40:20 Stephen Powell wrote:
> >> On Wed, 17 Feb 2010 12:26:43 -0500 (EST), Boyd Stephen Smith Jr. wrote:
> >>> Use this instead:
> >>> cp -a /medi
On Wed, 17 Feb 2010 15:04:32 -0500 (EST), Boyd Stephen Smith Jr. wrote:
> On Wednesday 17 February 2010 13:40:20 Stephen Powell wrote:
>> On Wed, 17 Feb 2010 12:26:43 -0500 (EST), Boyd Stephen Smith Jr. wrote:
>>> Use this instead:
>>> cp -a /media/. /mnt
>>> OR
>>> cp -a /media/{.[!.],}* /mnt
>>
Bob McGowan schreef:
> Sjoerd Hardeman wrote:
>> Stephen Powell schreef:
>>> Hi, all!
>>>
>>> In one of my web pages, as part of a larger overall procedure, I give
>>> instructions for copying an entire partition. The basic procedure involves
>>> mounting one partition on /media and the other on /
On Wednesday 17 February 2010 13:40:20 Stephen Powell wrote:
> On Wed, 17 Feb 2010 12:26:43 -0500 (EST), Boyd Stephen Smith Jr. wrote:
> > Use this instead:
> > cp -a /media/. /mnt
> > OR
> > cp -a /media/{.[!.],}* /mnt
>
> Your second method doesn't work in ash because ash does not support
> brac
> rsync -a /media/ /mnt/
This is good. Note that the trailing / on /media/ is significant.
> OR
> find /media -exec cp -a {} /mnt \;
No, that is both wrong and very inefficient:-
Wrong
-
Try this:
mkdir /tmp/media /tmp/mnt
mkdir -p /tmp/media/a/b/c
touch /tmp/media/a/aa /tmp/media/a/b/bb
On Wed, 17 Feb 2010 12:26:43 -0500 (EST), Boyd Stephen Smith Jr. wrote:
> On Wednesday 17 February 2010 11:18:38 Stephen Powell wrote:
>> Then the files
>> are copied between partitions by means of
>>
>>cp -a /media/* /mnt
>>
>> This seems to work OK except if there are "dot files" (files wit
Sjoerd Hardeman wrote:
> Stephen Powell schreef:
>> Hi, all!
>>
>> In one of my web pages, as part of a larger overall procedure, I give
>> instructions for copying an entire partition. The basic procedure involves
>> mounting one partition on /media and the other on /mnt. Then the files
>> are c
17.02.2010 19:18, Stephen Powell kirjoitti:
[...]
Of course, special handling is necessary to avoid processing "." (the current
directory) and ".." (the parent directory). Does anyone know a better way?
tar cf . | tar -C /target -xpf -
or
find . -depth -print0 |cpio --null -pvd /target
Stephen Powell schreef:
> Hi, all!
>
> In one of my web pages, as part of a larger overall procedure, I give
> instructions for copying an entire partition. The basic procedure involves
> mounting one partition on /media and the other on /mnt. Then the files
> are copied between partitions by me
On Qua, 17 Fev 2010, Stephen Powell wrote:
In one of my web pages, as part of a larger overall procedure, I give
instructions for copying an entire partition.
[snip]
Of course, special handling is necessary to avoid processing "." (the current
directory) and ".." (the parent directory). Does any
On Wednesday 17 February 2010 11:18:38 Stephen Powell wrote:
> Then the files
> are copied between partitions by means of
>
>cp -a /media/* /mnt
>
> This seems to work OK except if there are "dot files" (files with names
> beginning with a period) in the top directory of the source partition.
11 matches
Mail list logo