On Thu, Jun 12, 2003 at 10:51:18PM +1200, Sam Vilain wrote: > On Thu, 12 Jun 2003 12:05, Herbert Poetzl wrote: > > I usually do it with dump/restore ... > > > > # cd /vservers > > # mkdir XXX > > # cd XXX > > # dump 0f - /vservers/<name> | restore rf - > > # mv <name> ../<new-name> > > Hard core! > > What's wrong with cp -xal ? :-)
I guess nothing, but it does something completely different, with many nice side effects ;-) - dump/restore make a totally independant copy where all files are duplicated on inode basis - links within the path are preserved as expected - sparse files are handled properly what you meant, was cp -xa (without the l) - uses a heuristic for sparse files besides this, I didn't find any noticeable difference .. except that dump/restore also works across network *smile* best, Herbert > -- > Sam Vilain, [EMAIL PROTECTED] > > Real software engineers don't write applications programs, they > implement algorithms. If someone has an application that the > algorithm might help with, that's nice. Don't ask them to write the > user interface, though.
