August 23, 201411 yr 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?
August 23, 201411 yr 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
August 23, 201411 yr 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?
August 23, 201411 yr 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.
August 23, 201411 yr 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.
August 23, 201411 yr 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.
August 23, 201411 yr 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.
August 24, 201411 yr 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?
August 24, 201411 yr 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.
August 24, 201411 yr 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.
Archived
This topic is now archived and is closed to further replies.