helvete Posted July 8, 2021 Share Posted July 8, 2021 Hey all, Hoping the collective mind can help me figure out how to do this. So I want to back up to an external drive on a standalone windows pc that I have backblaze running on but I want to have rsync sync the files daily to that drive. So easy past is done, I've added the SMB share in unassigned devices I have my location and target set, but I keep getting an error: Quote rsync: [generator] recv_generator: mkdir "/mnt/remotes/192.168.0.101_F/docs/scans" failed: Permission denied (13) *** Skipping any contents from this failed directory *** I'm figuring I've missed something simple here's the script: Quote rsync -avz /mnt/user/docs/scans/ /mnt/remotes/192.168.0.101_F/docs/scans/ Quote Link to comment
cybersteel8 Posted July 9, 2021 Share Posted July 9, 2021 (edited) So it sounds like you've got your external drive plugged into your Windows PC and Windows is managing a share that you've mounted on your Unraid system to copy your data to? Have I understood this correctly? This would involve troubleshooting Windows's share setup, which is a little fiddly. I'd first use the Unraid Terminal to check the directory's permissions on the external drive share to ensure that Unraid is able to read and write to it. You can test it by creating a dummy text file in that share from the Unraid Terminal just to be sure. You could do things such as: ls -la /mnt/remotes/192.168.0.101_F/docs/scans/ That will show you the permissions of the directory indicated by the "." folder. Also any folders/files underneath that may have changed permissions and are not updatable by Unraid. touch /mnt/remotes/192.168.0.101_F/docs/scans/testfile.txt This will just create an empty text file in the share to ensure Unraid can write to it, at least, as the Unraid user you're logged into anyway. That'd be my first sanity check to ensure the share is read/write -able. Reply with how those tests go, let's start at the simple steps. Edited July 9, 2021 by cybersteel8 Quote Link to comment
helvete Posted July 9, 2021 Author Share Posted July 9, 2021 ls gave me: Quote drwxrwxrwx 2 nobody users 0 Jul 9 22:16 ./ drwxrwxrwx 2 nobody users 0 Jul 9 22:16 ../ touch gave me Quote touch: cannot touch '/mnt/remotes/192.168.0.101_F/docs/scans/testfile.txt': Permission denied Quote Link to comment
wildfire305 Posted September 11, 2021 Share Posted September 11, 2021 When you created the share on windows did you set the permissions in windows. By default it is read only. 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.