squirrellydw Posted August 23, 2014 Share Posted August 23, 2014 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? Quote Link to comment
SSD Posted August 23, 2014 Share Posted August 23, 2014 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 Quote Link to comment
squirrellydw Posted August 23, 2014 Author Share Posted August 23, 2014 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? Quote Link to comment
garycase Posted August 23, 2014 Share Posted August 23, 2014 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. Quote Link to comment
itimpi Posted August 23, 2014 Share Posted August 23, 2014 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. Quote Link to comment
squirrellydw Posted August 23, 2014 Author Share Posted August 23, 2014 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. Quote Link to comment
SSD Posted August 23, 2014 Share Posted August 23, 2014 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. Quote Link to comment
squirrellydw Posted August 23, 2014 Author Share Posted August 23, 2014 Thank guys Quote Link to comment
squirrellydw Posted August 24, 2014 Author Share Posted August 24, 2014 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? Quote Link to comment
JonathanM Posted August 24, 2014 Share Posted August 24, 2014 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. Quote Link to comment
MyKroFt Posted August 24, 2014 Share Posted August 24, 2014 i use rsync -a --progress --remove-source-files src/test/ dest Myk Quote Link to comment
SSD Posted August 24, 2014 Share Posted August 24, 2014 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. Quote Link to comment
abeksis Posted August 24, 2014 Share Posted August 24, 2014 How can you see the transfer speed? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.