Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] Move files from one disk to another

Featured Replies

I would like to move my TV Shows from one disk to another, I would I do this?

I would like to move everything in the TV Shows folder from

 

/mnt/disk1/TV Shows  to  /mnt/disk4/TV Shows

 

What would I type to do this, anything else I need to know?

 

 

I'd do it from a telnet/putty session. Do it in "screen" otherwise it will time out and stop.

 

mkdir /mnt/disk4/TV\ Shows

mv -v /mnt/disk1/TV\ Shows/* /mnt/disk4/TV\ Shows

 

  • Author

I'd do it from a telnet/putty session. Do it in "screen" otherwise it will time out and stop.

 

mkdir /mnt/disk4/TV\ Shows

mv -v /mnt/disk1/TV\ Shows/* /mnt/disk4/TV\ Shows

 

 

two questions?? 

Do I have to make the directory TV Shows if it's there already?

If I do it from the server itself do I still need to use screen?

No, if you do it from the server console you don't need to use Screen.

 

And no, you don't have to create the directory if it already exists.

 

One thing to be aware of is that you may mess up the permissions during the copy.  If so you should run a command like

newperms /mnt/disk4

when you have completed the copy to ensure they are set correctly.

  • Author

Moving everything now.  Two more questions..

 

1. When it's down moving everything I assume it will go back the TOWER prompt

2. Since this is moving TV Shows from disk 1 to disk 4 I assume when it's done there should be NO TV Shows on disk 1 right?

 

thanks for helping me as always guys.

Correct / Correct

 

Note that the "-v" on the "mv" command stands for verbose. It results is it showing each file as it is moved. This is handy if ever you are wondering if it is still working!

 

Should go fine. I do this type of thing all of the time.

 

BTW, some people prefer to copy rather than move, and then delete the source only after the copy is verified.

 

The syntax of cp, is similar to mv, but the switches are a little difference.

 

cp -Rpv /source/* /target

 

-R = recurse subdirectories

-p = preserve permissions

-v = verbose (same as mv)

 

Welcome to the Linux command line. :)

  • Author

Thank guys

  • Author

One thing to be aware of is that you may mess up the permissions during the copy.  If so you should run a command like

newperms /mnt/disk4

when you have completed the copy to ensure they are set correctly.

 

Can't I just run the new permissions script in unraid?

One thing to be aware of is that you may mess up the permissions during the copy.  If so you should run a command like

newperms /mnt/disk4

when you have completed the copy to ensure they are set correctly.

 

Can't I just run the new permissions script in unraid?

Sure. It will process the whole server instead of just disk4, so it will take longer, but it will accomplish the same thing.

i use

 

rsync -a --progress --remove-source-files src/test/ dest

 

Myk

 

I have not had permission problem when using mv or cp (with the preserve permissions flag). Newperms is a good solution if you do have problems, but I expect you will not need to use it.

 

I need to experiment with rsync. Thanks for posting MyK.

How can you see the transfer speed?

Archived

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.