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.5k 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.
    • 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
                              • G
                                Ghani @scottalanmiller
                                last edited by

                                @scottalanmiller

                                ok i will check this commands

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

                                And revert back to you

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

                                  "rsync -avz --stats --delete /mnt/v

                                  a for archiever
                                  v for verbose
                                  z for compress ??? so which flags take care of same permissions from source to destination .

                                  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 said in Inside a datasets all files are copying read only files and how to change full controll permissions using commands:

                                    "rsync -avz --stats --delete /mnt/v

                                    a for archiever
                                    v for verbose
                                    z for compress ??? so which flags take care of same permissions from source to destination .

                                    archiver

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

                                      archive

                                      "a" archiever will do copy same windows permissions from source to destination. ???

                                      DustinB3403D scottalanmillerS 2 Replies Last reply Reply Quote 0
                                      • DustinB3403D
                                        DustinB3403 @Ghani
                                        last edited by

                                        @Ghani Read the manual...

                                        https://linux.die.net/man/1/rsync

                                        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:

                                          And revert back to you

                                          Don't use "revert" back, you mean "reply" back. Revert means something totally different and is extremely dangerous to misuse in IT. I've seen big Fortune 100 banks blow away critical systems because a manager used "revert" instead of "reply".

                                          "Revert back to me" literally means "turn back into me." That's clearly wrong, so we know the sentence is just a mistake.

                                          But if you said "do an action on a system and revert back" it literally means to make a change then blow the change away as if it had never happened. And doesn't imply that they should tell you about it. So you'd never know that anything had been done.

                                          Like if you said "Change the oil in my car and revert" it would mean to change the oil... then take the new oil out and put your old bad oil back in again. People think that this sounds strange, but in IT we do reversion all the time for testing purposes. So it is totally expected to be heard and is totally unrelated to reply so people have no idea what is intended.

                                          1 Reply Last reply Reply Quote 2
                                          • 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 said in Inside a datasets all files are copying read only files and how to change full controll permissions using commands:

                                            archive

                                            "a" archiever will do copy same windows permissions from source to destination. ???

                                            -a, --archive
                                            This is equivalent to -rlptgoD. It is a quick way of saying you want recursion and want to
                                            preserve almost everything (with -H being a notable omission).

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