November 25, 20187 yr 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, 20187 yr by jonF
November 25, 20187 yr Community Expert 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/
November 25, 20187 yr Author 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!
November 25, 20187 yr Community Expert 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.
November 25, 20187 yr Author 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!
November 25, 20187 yr Community Expert 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/
November 25, 20187 yr Author 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!
November 25, 20187 yr Author 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
November 25, 20187 yr Community Expert 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?
November 25, 20187 yr Community Expert Did you assign a name to that Unassigned mount? At the command prompt, what do you get when you type this: ls /mnt/disks
November 25, 20187 yr Author 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.
November 25, 20187 yr Community Expert 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?
November 25, 20187 yr Author 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, 20187 yr by jonF
November 25, 20187 yr Community Expert 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?
November 25, 20187 yr Community Expert 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/
November 25, 20187 yr Author 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?
November 25, 20187 yr Community Expert 29 minutes ago, jonF said: Any thoughts? Terminal is not working properly, try again after rebooting.
November 26, 20187 yr Author 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, 20187 yr by jonF
November 26, 20187 yr Community Expert 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
Archived
This topic is now archived and is closed to further replies.