Next | Prev | Up | Top | Contents | Index

Using xfsdump and xfsrestore to Copy Filesystems

You can use xfsdump and xfsrestore to pipe data across filesystems or across the network with a single command line. By piping xfsdump standard output to xfsrestore standard input you create an exact copy of a filesystem.

For example, to make a copy of /usr/people/fred in the /usr2 directory, enter:

# xfsdump -J -s people/fred - /usr | xfsrestore - /usr2
To copy /usr/people/fred to the network host magnolia's /usr/tmp directory:

# xfsdump -J -s people/fred - /usr | rsh magnolia \
xfsrestore - /usr/tmp
This creates the directory /usr/tmp/people/fred on magnolia.

Note: The superuser account on the local system must be able to rsh to the remote system without a password. For more information, see hosts.equiv(4).


Next | Prev | Up | Top | Contents | Index