CLI Magic: Simple backup is Mirdir (Linux.com)
Posted Nov 22, 2005 23:26 UTC (Tue) by
hppnq (guest, #14462)
In reply to:
CLI Magic: Simple backup is Mirdir (Linux.com) by tjw.org
Parent article:
CLI Magic: Simple backup is Mirdir (Linux.com)
That is completely untrue. This command has everything to do with mirroring.
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! And yes, cp -a or -rp is the way to go of course. Consult the tar manpage for a hint of why this is a quick hack not suitable for mirroring, the synopsis should do it.
ssh somehost "cd /some/dir && tar czf -" | tar zxvf -
That makes more sense, yes. How exactly does it relate to mirdir?
(
Log in to post comments)