copying a home directory onto a removable drive and back
Karl Larsen
klarsen1 at gmail.com
Wed Jul 28 19:39:58 UTC 2010
On 07/28/2010 08:49 AM, Adam Funk wrote:
> On 2010-07-28, Adam Funk wrote:
>
>
>> I want to copy my home directory onto a USB drive (formatted to ext3),
>> shuffle the partitions around on the computer, and copy my home
>> directory back (onto a new, blank partition). I can think of four
>> ways to do it, although I'm not familiar with using the fourth:
>>
>> cp -r
>> rsync
>> tar
>> cpio
>>
>> Recommendations?
>>
> I forgot to mention that one of my concerns is getting the file
> permissions and ownerships and any hard links right when I copy
> everything back. (I doubt that I have any hard links, but you never
> know.)
>
>
>
>
I think if you use cp -ar the a gets you all the links in
files. Look at man cp and be sure.
73 Karl
--
Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
Key ID = 3951B48D
More information about the ubuntu-users
mailing list