Jump to content

best way to move files/dirs from one disk to another?


Recommended Posts

Posted

I accidentally copied  a large number of DVD folders of television episodes to my Movies share.  I would like to move them to the TV Shows share.

I assume the best way is to move the "locally", that is, to login to the array and use Linux commands.  Moving them using Windows interface on one of the PCs connected via ethernet to the Tower box would cause data to be transferred first to the PC and then back to the array, right?

 

Anyway, I assume someone has had this problem before and has a good way to do it.

Thanks.

Posted

Yup - telnet to the box and either copy/delete or move.

 

I often do the copy/delete just for safety -- I verify the files are good before deleting the old when I have no other backups.

 

So, you would do it like this (move tv folder from disk2 to disk1):

 

# copy
cp -a /mnt/disk2/tv /mnt/disk1
# delete
cd /mnt/disk2
rm -r tv

 

or

 

# move
mv /mnt/disk2/tv /mnt/disk1

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...