Moving Directories using TAR

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!

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *