Created
October 17, 2011 16:19
-
-
Save davorb/1292989 to your computer and use it in GitHub Desktop.
Copy files when moving dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://embraceubuntu.com/2006/01/29/move-home-to-its-own-partition/ | |
#Now, Copy files over: | |
#Since the “/home” directory will have hardlinks, softlinks, files and nested directories, a regular copy (cp) may not do the job completely. Therefore, we use something #we learn from the Debian archiving guide: | |
cd /home/ | |
find . -depth -print0 | cpio --null --sparse -pvd /mnt/newhome/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment