Disk Copy Between Machines

2007-12-25 11:58:00

The suggestions were varied and many, thanks to all who responded. The

solution I chose was to mount the original server's filesystems on the

new server and run the following command (because cpio-ing as root can

still get permission denied errors) -

cd /original_server/file_system_mount_point

for USER in `ld [a-j]*`

do

        su $USER -c "find $USER -print | cpio -pdumcvB /new_server_mount_point/sunusers"

done

This allowed me to fully automate copying each filesystem, which, actually,

contained nothing more than users home directories. I brought up 8 xterms

and started all 8 filesystem copies at once. No users were in the building.

Copy was over 155Mb ATM net. It took nearly four hours at this pace.

There was one vote for copying over a direct cable connection,

several votes for doing the safe way onto and back off of tape.

A couple of others worth mentioning were a suggestion for using tar -

        tar clf - /filesystem_from | ( cd /filesystem_to && tar xf - )

and one user who used RDIST!

Thanks to all who responded.

Comments

Got something to say?

You must be logged in to post a comment.