Best way to copy /usr to different partition?

Tony Nelson tonynelson at georgeanelson.com
Fri Dec 7 16:42:36 UTC 2007


At 10:43 PM -0500 12/6/07, Kevin J. Cummings wrote:
>Daniel B. Thurman wrote:
>> I was getting dangerously close to running out of disk space
>> since /usr was filling up fast.
>>
>> I thought it was simple to tar-copy /usr to a different drive/partiton
>> using tar copy such as:
>>
>> (cd /usr; tar cpf - .) | (cd /newpartition; tar xpf -)
>
>using tar doesn't copy the extended attributes used by SELinux. ...
 ...

`man tar` shows the --xattrs and --no-xattrs options (though `man tar` and
`info tar` don't say what the default is), so tar should work for EAs if
used with --xattrs.
-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
      '                              <http://www.georgeanelson.com/>




More information about the users mailing list