i just copied my home to another drive following this guide Moving /home to second hdd
Because I was scared, I used
cp -rp /home/* /mnt/ && sync
and renamed the original userhome to _bak afterward.
So far everything seems to be working, but is there a quick way to be sure everything was copied correctly?
diff -r /oldhome /newhome
You could compare the file and/or directory sizes with
du. Or for a more thorough but very time- and energy-consuming examination, you could use
rsync instead of
cp, the diff is already included (if you use checksums)
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.