Want rsync to list copied/deleted files

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I would like rsync to output the list of files which it actually copied, respectively deleted. From the man page, I though the following command will do:



rsync -a --info=backup2,copy2,del2 SOURCEDIR DESTDIR


By looking at DESTDIR afterwards, I see that the files are updated, but I don't get any list of files from rsync. Also tried it with just --info=backup,copy,del, but to no avail.



Why is it that my approach doesn't work, and how can I do it properly?







share|improve this question























    up vote
    0
    down vote

    favorite












    I would like rsync to output the list of files which it actually copied, respectively deleted. From the man page, I though the following command will do:



    rsync -a --info=backup2,copy2,del2 SOURCEDIR DESTDIR


    By looking at DESTDIR afterwards, I see that the files are updated, but I don't get any list of files from rsync. Also tried it with just --info=backup,copy,del, but to no avail.



    Why is it that my approach doesn't work, and how can I do it properly?







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I would like rsync to output the list of files which it actually copied, respectively deleted. From the man page, I though the following command will do:



      rsync -a --info=backup2,copy2,del2 SOURCEDIR DESTDIR


      By looking at DESTDIR afterwards, I see that the files are updated, but I don't get any list of files from rsync. Also tried it with just --info=backup,copy,del, but to no avail.



      Why is it that my approach doesn't work, and how can I do it properly?







      share|improve this question











      I would like rsync to output the list of files which it actually copied, respectively deleted. From the man page, I though the following command will do:



      rsync -a --info=backup2,copy2,del2 SOURCEDIR DESTDIR


      By looking at DESTDIR afterwards, I see that the files are updated, but I don't get any list of files from rsync. Also tried it with just --info=backup,copy,del, but to no avail.



      Why is it that my approach doesn't work, and how can I do it properly?









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 22 at 8:08









      user1934428

      34919




      34919




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Your concept of backup is different to that used by rsync. In rsync a backup is a copy on the destination of the original file before it was updated by rsync. Your command doesn't create any backups, so none will be listed.



          Similarly, your concept of copy is different to that used by rsync. There are no copies made, so none will be listed.



          This will get you a list of the files transferred or deleted, but note that neither your command nor this specifies that files are to be deleted (--delete), so the del is actually a no-op.



          rsync -a --info=name,del SOURCEDIR/ DESTDIR | grep -v '/$'





          share|improve this answer





















          • Thanks for pointing this out. As for the --delete, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!
            – user1934428
            Jun 22 at 11:56






          • 1




            @user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
            – roaima
            Jun 22 at 15:21










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451247%2fwant-rsync-to-list-copied-deleted-files%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          Your concept of backup is different to that used by rsync. In rsync a backup is a copy on the destination of the original file before it was updated by rsync. Your command doesn't create any backups, so none will be listed.



          Similarly, your concept of copy is different to that used by rsync. There are no copies made, so none will be listed.



          This will get you a list of the files transferred or deleted, but note that neither your command nor this specifies that files are to be deleted (--delete), so the del is actually a no-op.



          rsync -a --info=name,del SOURCEDIR/ DESTDIR | grep -v '/$'





          share|improve this answer





















          • Thanks for pointing this out. As for the --delete, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!
            – user1934428
            Jun 22 at 11:56






          • 1




            @user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
            – roaima
            Jun 22 at 15:21














          up vote
          1
          down vote













          Your concept of backup is different to that used by rsync. In rsync a backup is a copy on the destination of the original file before it was updated by rsync. Your command doesn't create any backups, so none will be listed.



          Similarly, your concept of copy is different to that used by rsync. There are no copies made, so none will be listed.



          This will get you a list of the files transferred or deleted, but note that neither your command nor this specifies that files are to be deleted (--delete), so the del is actually a no-op.



          rsync -a --info=name,del SOURCEDIR/ DESTDIR | grep -v '/$'





          share|improve this answer





















          • Thanks for pointing this out. As for the --delete, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!
            – user1934428
            Jun 22 at 11:56






          • 1




            @user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
            – roaima
            Jun 22 at 15:21












          up vote
          1
          down vote










          up vote
          1
          down vote









          Your concept of backup is different to that used by rsync. In rsync a backup is a copy on the destination of the original file before it was updated by rsync. Your command doesn't create any backups, so none will be listed.



          Similarly, your concept of copy is different to that used by rsync. There are no copies made, so none will be listed.



          This will get you a list of the files transferred or deleted, but note that neither your command nor this specifies that files are to be deleted (--delete), so the del is actually a no-op.



          rsync -a --info=name,del SOURCEDIR/ DESTDIR | grep -v '/$'





          share|improve this answer













          Your concept of backup is different to that used by rsync. In rsync a backup is a copy on the destination of the original file before it was updated by rsync. Your command doesn't create any backups, so none will be listed.



          Similarly, your concept of copy is different to that used by rsync. There are no copies made, so none will be listed.



          This will get you a list of the files transferred or deleted, but note that neither your command nor this specifies that files are to be deleted (--delete), so the del is actually a no-op.



          rsync -a --info=name,del SOURCEDIR/ DESTDIR | grep -v '/$'






          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered Jun 22 at 8:34









          roaima

          39.2k544105




          39.2k544105











          • Thanks for pointing this out. As for the --delete, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!
            – user1934428
            Jun 22 at 11:56






          • 1




            @user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
            – roaima
            Jun 22 at 15:21
















          • Thanks for pointing this out. As for the --delete, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!
            – user1934428
            Jun 22 at 11:56






          • 1




            @user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
            – roaima
            Jun 22 at 15:21















          Thanks for pointing this out. As for the --delete, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!
          – user1934428
          Jun 22 at 11:56




          Thanks for pointing this out. As for the --delete, I missed to write it in my post when I simplified for the purpose of this posting the (pretty complex) rsync command. I'm surprised to learn that there is a difference between copying and transfering files!
          – user1934428
          Jun 22 at 11:56




          1




          1




          @user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
          – roaima
          Jun 22 at 15:21




          @user1934438 copying is when there is already an instance of the file on the target, in a parallel directory. The file can be copied from there instead of transferred across from the source.
          – roaima
          Jun 22 at 15:21












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451247%2fwant-rsync-to-list-copied-deleted-files%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?