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.

copy interrupted - how to confirm correct copy

Featured Replies

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 by jonF

  • 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/

 

  • 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!

  • 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.

 

 

  • 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!

  • Author

And just to be clear I am copying a disk into the array.

  • 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/

 

 

  • 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!

  • 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

image.thumb.png.dc31238ec9fa6ef17dfc21a8b13d5e53.png

  • 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?

  • Author

I think so .. here it is. sdj

image.thumb.png.fa1aae585c9581d12fac9b9f3e9eb59f.png

  • 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

 

  • Author

Events_1

  • Author

here it is

 

 

image.thumb.png.5c3bb5568e6e7a0b9a6004596934d773.png

  • 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. 

 

  • 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?

  • 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 by jonF

  • 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?

 

 

  • 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/

 

  • Author

Thanks!!

 

  • 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?

 

image.thumb.png.eb3de50f08df6bfc58c407290bf52594.png

 

 

 

  • Community Expert
29 minutes ago, jonF said:

Any thoughts?

Terminal is not working properly, try again after rebooting.

  • 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 by jonF

  • 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.

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.