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

    Scheduled Pinned Locked Moved IT Discussion
    45 Posts 3 Posters 2.2k Views
    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 @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
                                      • G
                                        Ghani @scottalanmiller
                                        last edited by scottalanmiller

                                        @scottalanmiller

                                        can i use this command for rsync with same permissions from source to destination
                                        " rsync -rvp --stats --delete /mnt/volumes/ root@ipaddress::bkpvolumes"
                                        (or)
                                        "rsync -avz --stats --delete /mnt/volumes/ root@ipaddress::bkpvolumes "

                                        my zpool volumes have windows permissions in both source and destination. it is impact for convert read only files when rsync process running time?

                                        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

                                          can i use this command for rsync with same permissions from source to destination

                                          "rsync -avz --stats --delete /mnt/volumes/ root@ipaddress::bkpvolumes "

                                          Yes, that should work fine.

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

                                            If you've never used it, explainshell is awesome...

                                            http://explainshell.com/explain?cmd=rsync+-avz+--delete

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