Discussion Locked

moving files between partitions

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What is the recommended proceedure for moving files from one partition to another

11 replies

by khongphutu

Hi,

1. If you need to move a lot of data contained in nested subdirectories, then the best way is to tar the entire directory (with all the subdirectories maintained as is) before moving them. When untarred, the directory structure is maintained.

2. If the move is across the network and if the amount of data is large and if the move must be done during work hours then tarring is the best way. If you have a slow network or a busy network, this is a must do, and no longer an otion.

3. Use the verbose option to monitor the progress:
tar -cvf /tmp/ ./

Be sure the destination directory have enough disk space before tarring (I always use /tmp)

Confucius

by paulo.sedrez

Since old SunOS days, dump and restore are the best option to keep all attributes, including access/modify times, hard AND symbolic links, owner, group and permissions. Nowadays they are called ufsdump and ufsrestore. Try this:

cd to_dir ; ufsdump 0f - from_dir | ufsrestore 0f -

This discussion is closed to new replies.