General discussion

Locked

moving files between partitions

By emmanuel-sylva ·
What is the recommended proceedure for moving files from one partition to another

This conversation is currently closed to new comments.

11 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

moving files between partitions

by emmanuel-sylva In reply to moving files between part ...

p.s. using sun solaris 2.6

Collapse -

moving files between partitions

by alveden In reply to moving files between part ...

Just a issue a 'mv' command.

mv target destination

Collapse -

moving files between partitions

by emmanuel-sylva In reply to moving files between part ...

The question was auto-closed by TechRepublic

Collapse -

moving files between partitions

by emmanuel-sylva In reply to moving files between part ...

is this in preference to cp command, bearing in mind dynamic links

Collapse -

moving files between partitions

by ghislain.levesque In reply to moving files between part ...

cd fromdir; tar cf - . | (cd todir; tar xfBp -)

or

cp -pr

Collapse -

moving files between partitions

by emmanuel-sylva In reply to moving files between part ...

The question was auto-closed by TechRepublic

Collapse -

moving files between partitions

by KhongPhuTu In reply to moving files between part ...

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/<nameoftarfile.tar> ./<nameofdirtobetar>

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

Confucius

Collapse -

moving files between partitions

by emmanuel-sylva In reply to moving files between part ...

The question was auto-closed by TechRepublic

Collapse -

moving files between partitions

by paulo.sedrez In reply to moving files between part ...

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 -

Collapse -

moving files between partitions

by emmanuel-sylva In reply to moving files between part ...

The question was auto-closed by TechRepublic

Back to Linux Forum
11 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums