[clug] duplicate a file system to a smaller hard disk
Daniel Pittman
daniel at rimspace.net
Mon Aug 10 07:47:24 MDT 2009
Chris Zhang <chris.zhang.syd at gmail.com> writes:
> Out of curiosity, how do you use tar in this instance?
Typically, as root:
(cd /path/to/source && tar cpsS --one-file-system --numeric-owner .) | \
(cd /path/to/dest && tar xvsS)
> With rsync, is it faster even we are copying everything for the first time?
No, slower, but that way I don't have to retype the command the second time.
Regards,
Daniel
--
✣ Daniel Pittman ✉ daniel at rimspace.net ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
Looking for work? Love Perl? In Melbourne, Australia? We are hiring.
More information about the linux
mailing list