On Sunday 06 April 2008 08:11, Sam Clemens wrote:
Rodney Baker wrote:
...
You can easily clone home:
$ su - # change to root password: # type root password $ cd /newhome # or where ever you want to copy /home to. $ (cd /home && tar cvSf - . ) | tar xvSf -
It's probably a good idea to include the tar option that preserves maximal file attributes: -p, --same-permissions, --preserve-permissions extract all protection information And if you don't want all the source files to have their access time updated, include "--atime-preserve": --atime-preserve don't change access times on dumped files If there are active mount points within the source hierarchy and you want to limit the transfered files to those on the same file system as the starting point, use "-l" / "--one-file-system": -l, --one-file-system stay in local file system when creating an archive
...
Thanks, Sam.
Please, call him Aaron.
Don't thank me...thank SGI
I originally learned that 1-liner trick from the SGI man page for the tar command.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org