CLI Magic: Simple backup is Mirdir (Linux.com)
Posted Nov 23, 2005 16:47 UTC (Wed) by
tjw.org (guest, #20716)
In reply to:
CLI Magic: Simple backup is Mirdir (Linux.com) by hppnq
Parent article:
CLI Magic: Simple backup is Mirdir (Linux.com)
Consult the tar manpage for a hint of why this is a quick hack not suitable for mirroring, the synopsis should do it.
Sorry, you'll have to be more specific. I don't see any reason why this is bad practice in the tar man or info pages.
Nope, it has to do with archiving or moving data around, like you seem to observe yourself a few lines further on. Look up a definition of mirroring or hey, read the article!
I did read the article.
I define mirroring a directory as "making an exact copy of the directory". A mirror copy, if you will. To me, this means that all files, permissions, ownership, timestamps, and special files like devices should be exactly the same in both copies.
That makes more sense, yes. How exactly does it relate to mirdir?
It relates to mirdir only because it's a different method of achieving the same end. While mirdir/mirrordir/rsync do some checking to eliminate unnecessary copying, cp or tar can be used to copy everything every time. My point was that there are cases when the latter method is preferrable.
(
Log in to post comments)