Moving filesystems

From Sysadmin

Jump to: navigation, search

Unix has powerful capabilities to move filesystems locally and over a network without needing to read or write the filesystem from a backup file.


Locally

cd to the root directory of the new filesystem then run the command listed below for the utility being used. $DEVICE is the device file being copies when a dump utility is being used.

Ext2/3/4

dump 0f - $DEVICE |  restore -rf -

XFS

xfsdump -l 0 -e -M $LABEL -L $LABEL - $DEVICE | xfsrestore -r - .
Personal tools