[TriLUG] Stoopid copy question

Marty Ferguson marty at rtmx.net
Tue Dec 23 12:14:08 EST 2003


Tarus,

I agree with Dean.  Use the -a (archive) switch.  It also preserves the
timestamps on the inode
as long as you have an ext* filesystem with 3+ GB free.  Otherwise, use tar

tar -czvf /Drive2Mountpoint /BigEnoughDrive/my3Gtar.tgz

then when you're done

cd /NewPartMountPoint
tar -xzvf /BigEnoughDrive/my3Gtar.tgz

Whether you use cp -a or tar, do it as root.

Marty

-----Original Message-----
From: trilug-bounces at trilug.org [mailto:trilug-bounces at trilug.org]On
Behalf Of Dean Price
Sent: Tuesday, December 23, 2003 7:47 AM
To: Triangle Linux Users Group discussion list
Subject: Re: [TriLUG] Stoopid copy question


Try
cp -a source destination

Dean Price
deano at price4.org
dprice153 at charter.net
dean.price at ctg.com


Tarus Balog said:
>
> Okay, I don't want to screw this up, so I thought I'd run it by the
> list first.
>
> The Scenario:
>
> I have a two drive system, the second drive being one 18GB partition
> with about 3GB used. For various reasons I need to re-partition that
> drive. So, I want to copy that 3GB to another partition on drive one,
> repartition, and then copy it back.
>
> Red Hat Linux 9.
>
> What is the best way to do this to preserve permissions, links, etc?
>
> -T
>
>
>
> ________________________________________________________________________
> ___
> Tarus Balog							Main:		+1 919 545 2553
> Blast Internet Services, Inc.			Fax:			+1 919 542 5955
> Email: tarus at blast.com					URL: http://www2.blast.com/tarus
> PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C
>
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc
>

--
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc




More information about the TriLUG mailing list