jonF Posted November 26, 2018 Author Share Posted November 26, 2018 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? Quote Link to comment
trurl Posted November 26, 2018 Share Posted November 26, 2018 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. Quote Link to comment
jonF Posted November 26, 2018 Author Share Posted November 26, 2018 gotcha , sorry. How would I indicate the folder inside of the share "drives" Quote Link to comment
trurl Posted November 26, 2018 Share Posted November 26, 2018 Do you understand file paths in Windows or another OS? Quote Link to comment
jonF Posted November 26, 2018 Author Share Posted November 26, 2018 Sort of , but I don;t know how they are indicated here. Quote Link to comment
jonF Posted November 26, 2018 Author Share Posted November 26, 2018 would this be correct? rsync -av --progress /mnt/disks/Events_1/ /mnt/drives/Events_1/ Quote Link to comment
jonF Posted November 26, 2018 Author Share Posted November 26, 2018 (edited) 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, 2018 by jonF Quote Link to comment
trurl Posted November 26, 2018 Share Posted November 26, 2018 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. Quote Link to comment
jonF Posted November 26, 2018 Author Share Posted November 26, 2018 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/ Quote Link to comment
trurl Posted November 26, 2018 Share Posted November 26, 2018 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. Quote Link to comment
trurl Posted November 26, 2018 Share Posted November 26, 2018 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. Quote Link to comment
jonF Posted November 26, 2018 Author Share Posted November 26, 2018 Thank Trurl.. you're a good teacher. rsync -av --progress /mnt/disks/Events_1/ /mnt/user/drives/Events_1/ Quote Link to comment
jonF Posted November 26, 2018 Author Share Posted November 26, 2018 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. Quote Link to comment
trurl Posted November 26, 2018 Share Posted November 26, 2018 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! Quote Link to comment
jonF Posted November 26, 2018 Author Share Posted November 26, 2018 Thanks! Thanks again for your mentoring! Quote Link to comment
jonF Posted November 26, 2018 Author Share Posted November 26, 2018 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! Quote Link to comment
jonF Posted December 4, 2018 Author Share Posted December 4, 2018 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 Quote Link to comment
trurl Posted December 4, 2018 Share Posted December 4, 2018 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. Quote Link to comment
jonF Posted September 3, 2019 Author Share Posted September 3, 2019 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 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.