General discussion

  • Creator
    Topic
  • #2306810

    moving files between partitions

    Locked

    by emmanuel-sylva ·

    What is the recommended proceedure for moving files from one partition to another

All Comments

  • Author
    Replies
    • #3527787

      moving files between partitions

      by emmanuel-sylva ·

      In reply to moving files between partitions

      p.s. using sun solaris 2.6

    • #3527729

      moving files between partitions

      by alveden ·

      In reply to moving files between partitions

      Just a issue a ‘mv’ command.

      mv target destination

    • #3525569

      moving files between partitions

      by emmanuel-sylva ·

      In reply to moving files between partitions

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

    • #3456026

      moving files between partitions

      by ghislain.levesque ·

      In reply to moving files between partitions

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

      or

      cp -pr

    • #3526586

      moving files between partitions

      by khongphutu ·

      In reply to moving files between partitions

      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

    • #3521900

      moving files between partitions

      by paulo.sedrez ·

      In reply to moving files between partitions

      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 –

    • #3386959

      moving files between partitions

      by emmanuel-sylva ·

      In reply to moving files between partitions

      This question was auto closed due to inactivity

Viewing 6 reply threads