jonF Posted November 25, 2018 Share Posted November 25, 2018 (edited) Hi I started copying an 8tb disk and the power cut on the server. I started again copying selected folders that weren't copied. I deleted some folders in the destination to make sure that there weren't any partially copied folders. Now the file numbers are not equal between the disk and the folder I put it in. -off by about 3000 . How exactly do I do the copy again , knowing that it will skip the files that are there and copy the ones that are missing so that the numbers will be exact. and I can be assured that it is an exact copy. Or what else can I do to be assured that this was an exact copy and what can I do to fix it if it wasn't. Thanks Jon Edited November 25, 2018 by jonF Quote Link to comment
JorgeB Posted November 25, 2018 Share Posted November 25, 2018 You can use rsync: rsync -av --progress /mnt/diskX/ /mnt/diskY/ replace X with source, Y with destination. If there should be no other files on destination disk other than source disk files, you can use delete to make sure no incomplete files with temp names will remain on destination (this will delete any file on destination that doesn't exist on source): rsync -av --progress --delete /mnt/diskX/ /mnt/diskY/ 1 Quote Link to comment
jonF Posted November 25, 2018 Author Share Posted November 25, 2018 thanks 88 . i'm a newbie and not much pf a computer guy. Can you walk me through exactly what you are talking about . Is rsync a pluggin? where do I type what you have written? Thanks! Quote Link to comment
JorgeB Posted November 25, 2018 Share Posted November 25, 2018 rsync is included with Unraid, you type the command on the CLI using for example the built-in terminal window, shortcut is on the GUI's upper right side. Quote Link to comment
jonF Posted November 25, 2018 Author Share Posted November 25, 2018 Sorry. I don't see where to type it. can you be more specific on where to find it exactly. Thanks. I'm not very knowledgeable about much of the terminology. thanks! Quote Link to comment
jonF Posted November 25, 2018 Author Share Posted November 25, 2018 And just to be clear I am copying a disk into the array. Quote Link to comment
JorgeB Posted November 25, 2018 Share Posted November 25, 2018 And just to be clear I am copying a disk into the array. in that case you need to adjust paths (and unless it's the first disk you're copying don't use --delete): /mnt/path.to.source.disk/ /mnt/user/destination.share/ Quote Link to comment
jonF Posted November 25, 2018 Author Share Posted November 25, 2018 Thanks! I've never used a command prompt so I want to be crystal clear if you don't mind to make sure I am doing the exact right thing for the right purpose. A few questions. 1) In the new command prompt where do I put the name of the source disk and the name of the folder in the array? 2) Exactly What result will this yield for me? 3) do I copy and paste this in the command prompt? 4) where can I find more info about rsync and the various commands and what they do? Thanks! Quote Link to comment
jonF Posted November 25, 2018 Author Share Posted November 25, 2018 Hi Johnnie. Thanks so much for your help! I don't know what exactly I'm supposed to put in path.to.source.disk or destination.share/ Also when I run this. What will the end result be? Thanks! Jon Quote Link to comment
trurl Posted November 25, 2018 Share Posted November 25, 2018 56 minutes ago, jonF said: where can I find more info about rsync and the various commands and what they do? google 1 hour ago, jonF said: And just to be clear I am copying a disk into the array. Do you mean you are copying a disk mounted with the Unassigned Devices plugin? Quote Link to comment
jonF Posted November 25, 2018 Author Share Posted November 25, 2018 I think so .. here it is. sdj Quote Link to comment
trurl Posted November 25, 2018 Share Posted November 25, 2018 Did you assign a name to that Unassigned mount? At the command prompt, what do you get when you type this: ls /mnt/disks Quote Link to comment
jonF Posted November 25, 2018 Author Share Posted November 25, 2018 Just to review. I copied the disc into the array in two parts. The end result via properties was that there were 3000 more files in the source than the destination. How can I be sure that the copy is complete or correct, or if not, add the missing files. Thanks. Quote Link to comment
trurl Posted November 25, 2018 Share Posted November 25, 2018 Krusader makes things easier for some things but confuses me since I don't use it. I use the builtin mc (Midnight Commander). The reason Krusader confuses things is because the volume mappings for the docker are up to the user, and so the paths that get displayed in the docker aren't really the paths you would use at the command line (or indeed anywhere else). I just pulled binhex-Krusader up in Apps and it looks like it only gives one mapping by default, which is mapping the user shares (/mnt/user) to /media in the application. But that doesn't seem to be what you have and since we are talking about working at the command line I think it might be better at this point to just leave Krusader out of the discussion. The actual paths to your array disks are /mnt/disk1, /mnt/disk2, ..., the path to cache is /mnt/cache, the path to Unassigned mounts is /mnt/disks, the path to user shares is /mnt/user. It looks like we have established that the source path (the Unassigned disk) is /mnt/disks/Events_1. What did you have in mind for the destination? Quote Link to comment
jonF Posted November 25, 2018 Author Share Posted November 25, 2018 (edited) 17 minutes ago, trurl said: What did you have in mind for the destination? Thanks. I don't understand your question. The destination is already there. Events_1 I already copied the disk into the array but I'm not sure if it was a complete copy and want to either confirm tat it is or complete it if it isn't Edited November 25, 2018 by jonF Quote Link to comment
trurl Posted November 25, 2018 Share Posted November 25, 2018 20 minutes ago, jonF said: Thanks. I don't understand your question. The destination is already there. Events_1 I already copied the disk into the array but I'm not sure if it was a complete copy and want to either confirm tat it is or complete it if it isn't I thought we had already established that Events_1 was the source. Events_1 is the Unassigned Disk (sdj) correct? And you tried to copy it to the array? So some disk on the array (or was it a user share) was the destination? Quote Link to comment
JorgeB Posted November 25, 2018 Share Posted November 25, 2018 rsync will only copy the files missing on the destination, it will skip and existing files, in the end both source and destination will have the same files, though if krusader creates temp files when copying and because of the interruption those could be left there, to use rsync you just paste the command on the terminal windows and press enter, the command would be: rsync -av --progress /mnt/disks/Events_1/ /mnt/user/Name_of_the_share_you_are_copying_to/ Quote Link to comment
jonF Posted November 25, 2018 Author Share Posted November 25, 2018 Johnnie, I'm about to paste that into the terminal window but when I click on the terminal there is a blank white screen and the command prompt isn't there. Any thoughts? Quote Link to comment
JorgeB Posted November 25, 2018 Share Posted November 25, 2018 29 minutes ago, jonF said: Any thoughts? Terminal is not working properly, try again after rebooting. Quote Link to comment
jonF Posted November 26, 2018 Author Share Posted November 26, 2018 (edited) thanks. working now. "drives" is the name of the share. I copied and pasted the following in the terminal window. rsync -av --progress /mnt/disks/Events_1/ /mnt/user/drives/ I needed to mount it again .... will do that now Edited November 26, 2018 by jonF Quote Link to comment
trurl Posted November 26, 2018 Share Posted November 26, 2018 Is the Unassigned Disk still mounted? Is it really mounted with the name Events_1? 7 hours ago, trurl said: Did you assign a name to that Unassigned mount? At the command prompt, what do you get when you type this: ls /mnt/disks 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.