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.
    • DustinB3403D
      DustinB3403
      last edited by

      I haven't looked into this specific request, but are you not using the -p flag with your rsync command to copy over the permissions?

      G 1 Reply Last reply Reply Quote 1
      • DustinB3403D
        DustinB3403
        last edited by DustinB3403

        Also you wouldn't normally give your users direct access to your backup.

        I understand wanting to ensure the permissions are set so If you have to restore, you don't also have to restore the permissions, but this process sounds incorrect.

        Your backup system should only be accessible to yourself and other administrators.

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

          @DustinB3403

          my rsync command is " rsync -rv --stats --delete /mnt/volumes/ root@ipaddress::bkpvolume ..... if we will add flags -p directly on rsync scripts. if any impact existing data ?

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

            @DustinB3403

            how to change read only files to full control files using any freenas linux commands ?

            DustinB3403D 1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403
              last edited by

              Adding -p or --perms would only effect future operations.

              G 1 Reply Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403 @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:

                @DustinB3403

                how to change read only files to full control files using any freenas linux commands ?

                What do you mean?

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

                  @DustinB3403

                  rsync process running using scripts. if i edit the rsync commands and running rsync process means , if any impact happens ?

                  1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    DustinB3403
                    last edited by

                    The impact would be your backup directory would have the permissions copied from the source directory.

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

                      @DustinB3403

                      any commands for changing whole read only files & folders through shell interface.

                      DustinB3403D 1 Reply Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403 @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:

                        @DustinB3403

                        any commands for changing whole read only files & folders through shell interface.

                        So you have the read-only flag set on your directories and files, and want to remove this flag from the existing backup. There likely is, but I don't know of a way off hand. @scottalanmiller or @JaredBusch probably know off of the top of their heads.

                        1 Reply Last reply Reply Quote 0
                        • DustinB3403D
                          DustinB3403
                          last edited by

                          The --chmod is likely what you need, but you wouldn't want this running on every rsync operation. Since the goal is to mimic the permissions from the source directory.

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

                            using rsync -arzp command shows error operation not permitted ?

                            ![alt text](image url)

                            1 Reply Last reply Reply Quote 0
                            • DustinB3403D
                              DustinB3403
                              last edited by

                              Please repost the screenshot.

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

                                @DustinB3403

                                screenshot not copy on this forums ???

                                1 Reply Last reply Reply Quote 0
                                • DustinB3403D
                                  DustinB3403
                                  last edited by

                                  Seems to work for me, you can drag and drop the screenshot into the post window.

                                  1 Reply Last reply Reply Quote 0
                                  • DustinB3403D
                                    DustinB3403
                                    last edited by

                                    The command rsync -arzp is different from the command you posted above rsync -rv --stats --delete /mnt/volumes/ root@ipaddress::bkpvolume

                                    All you should need for future rsync operations to copy the permissions should be

                                    rsync -rvp --stats --delete /mnt/volumes/ root@ipaddress::bkpvolume

                                    Or rsync -avz --stats --delete /mnt/volumes/ root@ipaddress::bkpvolume

                                    G 1 Reply Last reply Reply Quote 1
                                    • DustinB3403D
                                      DustinB3403
                                      last edited by

                                      From here:


                                      rsync -avz foo:src/bar /data/tmp
                                      This would recursively transfer all files from the directory src/bar on the machine foo into the /data/tmp/bar directory on the local machine. The files are transferred in lqarchiverq mode, which ensures that symbolic links, devices, attributes, permissions, ownerships, etc. are preserved in the transfer. Additionally, compression will be used to reduce the size of data portions of the transfer.


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

                                        how to use "rsync -avz foo:src/bar /data/tmp command in my setup ? ...

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

                                          @DustinB3403

                                          use your rsync commands shows operation not permitted error displays

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

                                            Just to be clear, an rsync with a --delete flag cannot be a backup. That's a replica but not a backup. Any data lost on the source will automatically disappear on the replicant.

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