[vox-tech] Utility to image a hard drive

chris teknopup at gmail.com
Thu Apr 9 19:36:37 PDT 2009


wh4t 1f u 0n 4n0th3r b0x3n, 
nd c4nt 4cs ur f1l3z b3c0z 
un1x d33ms u 4 /r33p.


On Thu, 2009-04-09 at 14:43 -0700, Rick Moen wrote:
> Quoting chris (teknopup at gmail.com):
> 
> > cp -r $1/* $2 
> > 
> > :)
> 
> Major win for simplicity!  But consider "cp -ax [foo] [bar]".
> 
> The "a" accomplishes everything "r" does, while avoiding dereferencing
> symlinks, and preserving ownership, permissions, and time stamps.  The
> "x" avoids accidentally crossing filesystem boundaries, which can be 
> A Very Bad Thing, if, say, copying the root FS.  (Trying to copy
> /proc/kcore will ruin your whole day.)


More information about the vox-tech mailing list