HOWTO: Copy Linux Filesystems June 8, 2006
Posted by devhen in HOWTO, Linux.trackback
I recently added a hard drive to one of my Linux systems and while searching for the best way to copy my old /home filesystem to the new drive I came upon this command:
/sbin/dump 0f - /home | ( cd /new ; /sbin/restore rf - )
Here my new hard drive is mounted on /new and I’m copying the entire filesystem from /home to /new. On my system (CentOS 4) the dump and restore commands are in /sbin/ but other distros may not be consistent so you’ll want to make changes to the command as needed.
Comments»
No comments yet — be the first.