NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Radjin
Apr 07, 2020Aspirant
rsync permissions update every run.
I use rsync to mirror my media library to my readyNAS 316 from my Mac mini. It's a 14TB library so examples below will only show a few lines. I run the following: rsync -aPvui --delete-durin...
- Apr 07, 2020
StephenB wrote:Try:
rsync -aPvuin --delete-during --delete-excluded --ignore-errors --exclude={'*.Trashes*','*.fsev*','*.DS_*','*.Spotlight*','*Automatically Add*','*Downloads*'} /Volumes/Media\ Drive/ rsync://admin@10.0.1.20:/data/NAS1_Media_Server/Backup/media
rsync://admin@10.0.1.20:/NAS1_Media_Server/Backup/media
Changing to this seems to work:
I am going to let it run and move some date to see what happens.
Thank you.
StephenB
Apr 07, 2020Guru - Experienced User
Are you running this on the Mac?
It looks like both source and destination are local - if so, the NAS volume is likely mapped and shared with SMB. If that's the case, Samba might be changing the permissions.
You could try enabling rsync on the NAS backup share and using admin@nas-ip-address:/Backup/media as the destination
Radjin
Apr 07, 2020Aspirant
Yes, this runs on a Mac and the NAS share is mapped as a local drive with SMB.
I can call rsync on the NAS directly with the IP address?
Would the syntax be:
user: password@IP_Address/Share
Or would I need to get a key from the NAS to avoid manually entering a password?
- StephenBApr 07, 2020Guru - Experienced User
Radjin wrote:
Yes, this runs on a Mac and the NAS share is mapped as a local drive with SMB.
I can call rsync on the NAS directly with the IP address?
Yes (though technically rsync on the Mac is connecting to the rsync server in the NAS).
Radjin wrote:
Would the syntax be
user: password@IP_Address/Share
No (at least not on linux). Try the command first using the syntax I gave you, and see if it solves your problem. Note that you don't have to enable password protection on the destination share (look at the rsync network settings for the share). So you might not need to enter the password at all. Also, I think the default rsync access is read-only, so you do need to go the the rsync share settings and change that anyway.
If you do want to use password protection, you can use the --password-file option (if that exists on the Mac version).
- RadjinApr 07, 2020Aspirant
StephenB wrote:
Radjin wrote:Yes, this runs on a Mac and the NAS share is mapped as a local drive with SMB.
I can call rsync on the NAS directly with the IP address?
Yes (though technically rsync on the Mac is connecting to the rsync server in the NAS).
Radjin wrote:Would the syntax be
user: password@IP_Address/Share
No (at least not on linux). Try the command first using the syntax I gave you, and see if it solves your problem. Note that you don't have to enable password protection on the destination share (look at the rsync network settings for the share). So you might not need to enter the password at all. Also, I think the default rsync access is read-only, so you do need to go the the rsync share settings and change that anyway.
If you do want to use password protection, you can use the --password-file option (if that exists on the Mac version).
I checked and rsync was on for the share. I had to enable ssh as well. It asked for my password because the share has one, I entered it and received the following:
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12)
- StephenBApr 07, 2020Guru - Experienced User
Radjin wrote:
I checked and rsync was on for the share. I had to enable ssh as well. It asked for my password because the share has one, I entered it and received the following:
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12)
You don't need ssh for this - you just run rsync on the Mac with the change to the destination. Not sure what you mean by the "share has one". Are you saying that rsync is enabled as read/write for the share and it was already set up for password protection? Maybe post a screenshot of the network access tab for rsync (share settings)?
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!