November 26, 20187 yr Author its working. but not correctly. Its copying everything from that disck into the share "drives" . And it duplicate all of the files of the disk into that share. I need to compare what is in the disk "Events_1" to a folder in the share "drives" called "Events_1" and copy the missing files from the disk to that folder inside the share. How do I stop the process at this point?
November 26, 20187 yr Community Expert 6 minutes ago, jonF said: its working. but not correctly. Its copying everything from that disck into the share "drives" . And it duplicate all of the files of the disk into that share. I need to compare what is in the disk "Events_1" to a folder in the share "drives" called "Events_1" and copy the missing files from the disk to that folder inside the share. How do I stop the process at this point? You should be able to abort the rsync by pressing Ctrl-C at the command line. Of course, the command you entered specified copying into the share. It didn't say anything about copying to a folder within the share. It's a good idea to try to understand anything you enter at the Linux command line since it is very powerful and not designed to save you from yourself.
November 26, 20187 yr Author gotcha , sorry. How would I indicate the folder inside of the share "drives"
November 26, 20187 yr Author would this be correct? rsync -av --progress /mnt/disks/Events_1/ /mnt/drives/Events_1/
November 26, 20187 yr Author Also, seems like lot to ask but would you mind explaining what all of the pieces of that command line mean? or how I would find this out on my own. Edited November 26, 20187 yr by jonF
November 26, 20187 yr Community Expert 25 minutes ago, jonF said: would this be correct? rsync -av --progress /mnt/disks/Events_1/ /mnt/drives/Events_1/ Close. Go back to the *LAST* example johnnie.black gave and see if you can figure out what you left out. As mentioned, you can google rsync. I would have to google it myself to remember the exact meaning of some of the "switches" since I don't type it often. I think -av means archive verbose but I would check if I were you. After the --progress switch, you have 2 paths, the source path and the (incorrect) destination path. I already explained Unraid paths 8 hours ago, trurl said: 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.
November 26, 20187 yr Author Thanks for hanging in there with me. Thanks so much for the guidance!!! Under users is there is only one. the name is "root" How bout this rsync -av --progress /mnt/disks/Events_1/ /mnt/root/drives/Events_1/
November 26, 20187 yr Community Expert 53 minutes ago, jonF said: Thanks for hanging in there with me. Thanks so much for the guidance!!! Under users is there is only one. the name is "root" How bout this rsync -av --progress /mnt/disks/Events_1/ /mnt/root/drives/Events_1/ No that's not it. The "users" you are referring to there are the users that are allowed access to Unraid. It is the "user shares" we are talking about, which are the shares (network folders) Unraid makes available. You have a user share named "drives". See my previous explanation of Unraid paths for where the user shares are and put that together with the rsync command you used earlier for copying to a user share, except you want to get to a lower level in that path, which is a folder within that user share.
November 26, 20187 yr Community Expert Probably you were confused because I said the user shares were at /mnt/user, and you thought you had to substitute a username for "user". No substitution. The user shares are in /mnt/user, such as /mnt/user/disk1.
November 26, 20187 yr Author Thank Trurl.. you're a good teacher. rsync -av --progress /mnt/disks/Events_1/ /mnt/user/drives/Events_1/
November 26, 20187 yr Author before I run it I'll need confirmation. I'm pretty sure this is it. But would be great to just have the thumbs up.
November 26, 20187 yr Community Expert 35 minutes ago, jonF said: Thank Trurl.. you're a good teacher. rsync -av --progress /mnt/disks/Events_1/ /mnt/user/drives/Events_1/ You got it!
November 26, 20187 yr Author It worked, It copied the missing files . the final result is that there are now the same number files in the source disk and the destination. Thanks everyone for the help!
December 4, 20187 yr Author Does the terminal (command prompt window) need to be visible for it to continue working If I close the browser or unraid tab will it be there continuing when I reopen it like it happens with Krusader? thanks
December 4, 20187 yr Community Expert I seldom use the terminal window since it is a new feature and I have been using ssh with puTTY for years. Even there you have to be running in a screen session to allow it to disconnect and reconnect. I assume screen would be required for the terminal window also. You can install screen from the Nerd Pack and google 'linux screen command' for how it works.
September 3, 20196 yr Author Hi I used this a while ago but am now not sure of something that you all said. If I use this at the c prompt rsync -av --progress /mnt/disks/Events_1/ /mnt/user/drives/Events_1/ and then interrupt the copy and restart the copy will it only copy the remaining files? If I run it immediately after the copy is complete will it just do nothing having confirmed that all the files are the same in each? If that is not what this code will do can someone give me the code that could do that please. Thanks!!! Jonf
Archived
This topic is now archived and is closed to further replies.