NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Radjin's avatar
Radjin
Aspirant
Apr 07, 2020
Solved

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-during --delete-excluded --ignore-errors --exclude={'.Trashes*/','.fsev*/','.DS_*','.Spotlight*/','Automatically Add*/','Downloads*/'} /Volumes/Media\ Drive/ /Volumes/NAS2_Media_Server/Backup/Media --log-file=/Users/CXMS/Desktop/rsync_log2

 

I get no errors and so far it has done as expected with one exception; every run it indicates an update to the permissions of existing files.  Nothing has changed on the original file. 

Examples:

Run 1: 

26350 files to consider

.d...p... ./

.f...p... .Media Preferences.plist

.d...p... Audiobooks/

.d...p... Audiobooks/Diana Gabaldon/

.f...p... Audiobooks/Diana Gabaldon/01 Outlander_ Outlander, Book 1 (Unabridged) Part 1.m4b

 

Run 2:

26350 files to consider

.d...p... ./

.f...p... .Media Preferences.plist

.d...p... Audiobooks/

.d...p... Audiobooks/Diana Gabaldon/

.f...p... Audiobooks/Diana Gabaldon/01 Outlander_ Outlander, Book 1 (Unabridged) Part 1.m4b

 

As you can see both runs are identical.

 

Any suggestions as to why it updates the permissions every run?

 

Thank you in advance for suggestions.

 

Radjin~

  • Radjin's avatar
    Radjin
    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.

15 Replies

Replies have been turned off for this discussion
  • StephenB's avatar
    StephenB
    Guru - 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's avatar
      Radjin
      Aspirant

      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?

      • StephenB's avatar
        StephenB
        Guru - 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).

NETGEAR Academy

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

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More