Mick <michaelkintz...@gmail.com> wrote:

> or something like this with star:
>
> star -copy -p -xdot -xattr -H=exustar -sparse -M -C /home . /mnt/new_partition
>
> (You can use -V -pat=File1 to exclude files or directories with star, use the 
> -M option to avoid following mount points).

star -copy by default uses the star "-dump" format which is the "exustar" 
format + extended dump metadata. There is no need to specify the archive format 
with star -copy.

Also note that star by default uses a safe extract method that calls fsync(2) 
at the end of each single file extract. This is the only way for star for being 
able to detect all possible extract problems. On Linux, the file system buffer 
cache is implemented in a very inefficient way and with some COW filesystems 
(like ZFS), a fsync(2) is an expensive instruction. In such cases, you may call 
star with the -no-fsync option and switch star to the same level of "safeness" 
as other software to speed up the extract or copy operation.

So if you are on Linux and use star -no-fsync, you will not be less secure than 
other software but get aprox. 20% better performance than with other copy 
methods.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       j...@cs.tu-berlin.de                (uni)  
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to