Mailinglist Archive: opensuse (4344 mails)
| < Previous | Next > |
RE: [SLE] Copying files
- From: "Arun K. Khan" <knura@xxxxxxxxx>
- Date: Wed, 31 Aug 2005 17:29:57 +0530
- Message-id: <1125489597.7423.33.camel@xxxxxxxxxxxxxxxxxxxxxxx>
On Wed, 2005-08-31 at 12:08 +0200, Albert wrote:
> If I remember correctly this will mirror <current device> to <backup
> device>. Is there a way I can only copy a directory from <current device> to
> <backup device>?
Yes, dd will copy the whole device. To copy a specific directory, I
would just "cp --archive" or "tar" it to a file on your new HDD as shown
below:
cd <to dir to copy>
tar -c -S -f - . | (cd <to new dir> && tar -x -p -v -f -)
HTH,
-- Arun Khan (knura at yahoo dot com)
The price of seeking to force our beliefs on others is that someday they
might force their beliefs on us. -- Mario Cuomo
> If I remember correctly this will mirror <current device> to <backup
> device>. Is there a way I can only copy a directory from <current device> to
> <backup device>?
Yes, dd will copy the whole device. To copy a specific directory, I
would just "cp --archive" or "tar" it to a file on your new HDD as shown
below:
cd <to dir to copy>
tar -c -S -f - . | (cd <to new dir> && tar -x -p -v -f -)
HTH,
-- Arun Khan (knura at yahoo dot com)
The price of seeking to force our beliefs on others is that someday they
might force their beliefs on us. -- Mario Cuomo
| < Previous | Next > |