ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Inside a datasets all files are copying read only files and how to change full controll permissions using commands

    IT Discussion
    3
    45
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Ghani
      last edited by

      @scottalanmiller said in Inside a datasets all files are copying read only files and how to change full controll permissions using commands:

      p, --perms
      This option causes the receiving rsync to set the destination permissions to be the same as the
      source permissions. (See also the --chmod option for a way to modify what rsync considers to be
      the source permissions.)

      Dear Team,

      Based on our discussion , i using below rsync commands ,

      rsync -rvp --stats --delete /mnt/testvol/ [email protected]::test
      rsync -avz --stats --delete /mnt/testvol/ [email protected]::test

      rsync -arzp --stats --delete /mnt/testvol/ [email protected]::test

      source : /mnt/testvol/
      destination : /mnt/testvolbkp/ = freenas module name is "test"

      Note : In source server zpool is " testvol" . I assigned permissions on testvol is windows permissions [ VMWARELAB\Administrator] and [ VMWARELAB\domain admins ] .

      In destination server zpool is " testvolbkp" . I assigned permissions on testvol is windows permissions [ VMWARELAB\Administrator] and [ VMWARELAB\domain admins ] . And created rsync module name is "test" login is user : root /wheel.

      For your reference, i attached screenshots.0_1489129468089_zpool volume permissions.PNG

      0_1489128694908_Read ony issues.PNG ))
      0_1489129477303_bkp zpool volume permissions.PNG 0_1489129495903_test module destination.PNG

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        @Ghani said in Inside a datasets all files are copying read only files and how to change full controll permissions using commands:

        rsync -rvp --stats --delete /mnt/testvol/ [email protected]::test
        rsync -avz --stats --delete /mnt/testvol/ [email protected]::test
        rsync -arzp --stats --delete /mnt/testvol/ [email protected]::test

        I have a feeling you didn't read what I posted. All three of these do overlapping things. r, v and p are inclusive in a like I showed above. So you are testing the same thing over and over again. Why not stick to avz?

        1 Reply Last reply Reply Quote 1
        • G
          Ghani
          last edited by

          Dear Friend,

          I have used
          rsync -avz --stats --delete /mnt/testvol/ [email protected]::test this command. Remains the same error comes.

          I attached screenshot for your reference.

          0_1489135031237_error occur.PNG

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @Ghani
            last edited by

            @Ghani Are you sure that all the same users and options exist at the other location?

            1 Reply Last reply Reply Quote 1
            • G
              Ghani
              last edited by

              Yes ...

              I created datasets with same name and assigned same windows permissions in both source and destination freenas. Source server is production server.
              Destination server is backup server. using rsync tools for backup.

              Friends ... i have doubt ?? , we assigned windows user permissions in all datasets. But we using rsync with root user login .. it happen any issue for permission transfer ?

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller
                last edited by

                Try adding -AX to it as well. X is for the extended attributes.

                1 Reply Last reply Reply Quote 0
                • G
                  Ghani
                  last edited by

                  rsync -AX --stats --delete /mnt/testvol/ [email protected]::test like this ???

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    Add AX to what you had before.

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      Ghani @scottalanmiller
                      last edited by

                      @scottalanmiller

                      rsync -avzAX --stats --delete /mnt/testvol/ [email protected]::test like this ??? correct ?

                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • G
                        Ghani
                        last edited by

                        Dear Friend ... same error happen again

                        0_1489151525285_rsync errors.PNG

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @Ghani
                          last edited by

                          @Ghani said in Inside a datasets all files are copying read only files and how to change full controll permissions using commands:

                          @scottalanmiller

                          rsync -avzAX --stats --delete /mnt/testvol/ [email protected]::test like this ??? correct ?

                          Yes. That's what I was hoping for.

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @Ghani
                            last edited by

                            @Ghani so the question is... why would you not have permission on the second host?

                            G 1 Reply Last reply Reply Quote 0
                            • G
                              Ghani @scottalanmiller
                              last edited by

                              @scottalanmiller

                              Already we set as same in all windows permissions in both source and destination created datasets. Then how ?

                              1 Reply Last reply Reply Quote 0
                              • 1
                              • 2
                              • 3
                              • 1 / 3
                              • First post
                                Last post