Jump to content

copy interrupted - how to confirm correct copy


jonF

Recommended Posts

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
Link to comment

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/

 

  • Upvote 1
Link to comment

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!

Link to comment

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. 

 

Link to comment

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?

Link to comment

 

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
Link to comment
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?

 

 

Link to comment

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/

 

Link to comment

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
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...