Return to General UNIX Home Page.
Moving Directories using TAR
by Jeff Hunter, Sr. Database Administrator
The following can be used to move a directory/sub-directory when the directory is the entire mount point:
# dump 0f - /dev/rdsk/c207d0s0 | restore rf -
NOTE: Must be in the target directory!
The following can be used when the directory to be moved is a sub-directory to the mount point:
# tar cvf - . | (cd /applmgr_new; tar xf -)
NOTE: Must be in the source directory!