Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jan 2012
Moving /home proper way to copy files over
My question is what is the correct command to copy from /home to the new home /mnt?
do I use cp with switches to catch hidden/links etc or use a variant for find command piped to a copy type utility?
obviously, vp -R /home/* /mnt will not do the job.
A lot of people do this sort of thing with cpio. cpio is similar to tar but it has a "copy-pass" mode in which no archive is actually created. Instead files pass through cpio to their new location with ownership and permissions intact. Have a look at the cpio man page for details."I'm just a little old lady; don't try to dazzle me with jargon!"
rsync also works well for that purpose, and can be re-run efficiently if need be.
--- rod.Stuff happens. Then stays happened.