Exclude symbolic links from rsync without excessive notification

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











up vote
0
down vote

favorite












I want to exclude symbolic links from an rsync, but --no-links floods my terminal with skipping non-regular file for every link, taking focus from other important information from rsync.



How can I exclude links without being pestered about each individual occurrence? The following are not acceptable solutions:



  1. Using the -q option, as this suppresses all output from rsync

  2. Filtering the message with grep

  3. Meticulously altering my include file around the links are not good options.

If this is is impossible (as it may seem): Why is skipping non-regular files considered so important that the user is explicitly warned about every single one of them even when he has specified he wants to exclude them? I'm tempted to take this up as an issue with the developer.







share|improve this question

















  • 1




    Possible duplicate of rsync "skipping non-regular file" message when not copying links
    – Marco
    May 28 at 8:36










  • @Marco: It's a duplicate, but I'm not happy with the proposed answer. Read updated post.
    – forthrin
    May 28 at 8:50










  • Why is it not an option to filter those unwanted messages away?
    – ilkkachu
    May 29 at 20:24










  • @ilkkachu: Just seems very hacky...
    – forthrin
    May 30 at 6:43














up vote
0
down vote

favorite












I want to exclude symbolic links from an rsync, but --no-links floods my terminal with skipping non-regular file for every link, taking focus from other important information from rsync.



How can I exclude links without being pestered about each individual occurrence? The following are not acceptable solutions:



  1. Using the -q option, as this suppresses all output from rsync

  2. Filtering the message with grep

  3. Meticulously altering my include file around the links are not good options.

If this is is impossible (as it may seem): Why is skipping non-regular files considered so important that the user is explicitly warned about every single one of them even when he has specified he wants to exclude them? I'm tempted to take this up as an issue with the developer.







share|improve this question

















  • 1




    Possible duplicate of rsync "skipping non-regular file" message when not copying links
    – Marco
    May 28 at 8:36










  • @Marco: It's a duplicate, but I'm not happy with the proposed answer. Read updated post.
    – forthrin
    May 28 at 8:50










  • Why is it not an option to filter those unwanted messages away?
    – ilkkachu
    May 29 at 20:24










  • @ilkkachu: Just seems very hacky...
    – forthrin
    May 30 at 6:43












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to exclude symbolic links from an rsync, but --no-links floods my terminal with skipping non-regular file for every link, taking focus from other important information from rsync.



How can I exclude links without being pestered about each individual occurrence? The following are not acceptable solutions:



  1. Using the -q option, as this suppresses all output from rsync

  2. Filtering the message with grep

  3. Meticulously altering my include file around the links are not good options.

If this is is impossible (as it may seem): Why is skipping non-regular files considered so important that the user is explicitly warned about every single one of them even when he has specified he wants to exclude them? I'm tempted to take this up as an issue with the developer.







share|improve this question













I want to exclude symbolic links from an rsync, but --no-links floods my terminal with skipping non-regular file for every link, taking focus from other important information from rsync.



How can I exclude links without being pestered about each individual occurrence? The following are not acceptable solutions:



  1. Using the -q option, as this suppresses all output from rsync

  2. Filtering the message with grep

  3. Meticulously altering my include file around the links are not good options.

If this is is impossible (as it may seem): Why is skipping non-regular files considered so important that the user is explicitly warned about every single one of them even when he has specified he wants to exclude them? I'm tempted to take this up as an issue with the developer.









share|improve this question












share|improve this question




share|improve this question








edited May 28 at 8:49
























asked May 28 at 8:20









forthrin

800821




800821







  • 1




    Possible duplicate of rsync "skipping non-regular file" message when not copying links
    – Marco
    May 28 at 8:36










  • @Marco: It's a duplicate, but I'm not happy with the proposed answer. Read updated post.
    – forthrin
    May 28 at 8:50










  • Why is it not an option to filter those unwanted messages away?
    – ilkkachu
    May 29 at 20:24










  • @ilkkachu: Just seems very hacky...
    – forthrin
    May 30 at 6:43












  • 1




    Possible duplicate of rsync "skipping non-regular file" message when not copying links
    – Marco
    May 28 at 8:36










  • @Marco: It's a duplicate, but I'm not happy with the proposed answer. Read updated post.
    – forthrin
    May 28 at 8:50










  • Why is it not an option to filter those unwanted messages away?
    – ilkkachu
    May 29 at 20:24










  • @ilkkachu: Just seems very hacky...
    – forthrin
    May 30 at 6:43







1




1




Possible duplicate of rsync "skipping non-regular file" message when not copying links
– Marco
May 28 at 8:36




Possible duplicate of rsync "skipping non-regular file" message when not copying links
– Marco
May 28 at 8:36












@Marco: It's a duplicate, but I'm not happy with the proposed answer. Read updated post.
– forthrin
May 28 at 8:50




@Marco: It's a duplicate, but I'm not happy with the proposed answer. Read updated post.
– forthrin
May 28 at 8:50












Why is it not an option to filter those unwanted messages away?
– ilkkachu
May 29 at 20:24




Why is it not an option to filter those unwanted messages away?
– ilkkachu
May 29 at 20:24












@ilkkachu: Just seems very hacky...
– forthrin
May 30 at 6:43




@ilkkachu: Just seems very hacky...
– forthrin
May 30 at 6:43










2 Answers
2






active

oldest

votes

















up vote
1
down vote













You can use --files-from to define the list of files to sync, and use find to exclude symlinks:



rsync --files-from=<(find . ! -type l -print) . TARGET/





share|improve this answer





















  • Yes, this works, but then I have to run a separate rsync for these files only. It would have been nice to include it with the main rsync backup.
    – forthrin
    May 28 at 20:18










  • @forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
    – nohillside
    May 29 at 4:16

















up vote
1
down vote













If you don't want to see messages about any skipped files, you can use --info=skip0 if your version of rsync is not too old.



If you don't want to see messages on skipped symbolic links, but do want the messages if any other files are skipped, then unfortunately rsync's output control options don't seem to be fine-grained enough for that.



See rsync --info=help for a list of things you can adjust in rsync output.






share|improve this answer





















    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%2f446440%2fexclude-symbolic-links-from-rsync-without-excessive-notification%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    You can use --files-from to define the list of files to sync, and use find to exclude symlinks:



    rsync --files-from=<(find . ! -type l -print) . TARGET/





    share|improve this answer





















    • Yes, this works, but then I have to run a separate rsync for these files only. It would have been nice to include it with the main rsync backup.
      – forthrin
      May 28 at 20:18










    • @forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
      – nohillside
      May 29 at 4:16














    up vote
    1
    down vote













    You can use --files-from to define the list of files to sync, and use find to exclude symlinks:



    rsync --files-from=<(find . ! -type l -print) . TARGET/





    share|improve this answer





















    • Yes, this works, but then I have to run a separate rsync for these files only. It would have been nice to include it with the main rsync backup.
      – forthrin
      May 28 at 20:18










    • @forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
      – nohillside
      May 29 at 4:16












    up vote
    1
    down vote










    up vote
    1
    down vote









    You can use --files-from to define the list of files to sync, and use find to exclude symlinks:



    rsync --files-from=<(find . ! -type l -print) . TARGET/





    share|improve this answer













    You can use --files-from to define the list of files to sync, and use find to exclude symlinks:



    rsync --files-from=<(find . ! -type l -print) . TARGET/






    share|improve this answer













    share|improve this answer



    share|improve this answer











    answered May 28 at 17:07









    nohillside

    1,858616




    1,858616











    • Yes, this works, but then I have to run a separate rsync for these files only. It would have been nice to include it with the main rsync backup.
      – forthrin
      May 28 at 20:18










    • @forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
      – nohillside
      May 29 at 4:16
















    • Yes, this works, but then I have to run a separate rsync for these files only. It would have been nice to include it with the main rsync backup.
      – forthrin
      May 28 at 20:18










    • @forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
      – nohillside
      May 29 at 4:16















    Yes, this works, but then I have to run a separate rsync for these files only. It would have been nice to include it with the main rsync backup.
    – forthrin
    May 28 at 20:18




    Yes, this works, but then I have to run a separate rsync for these files only. It would have been nice to include it with the main rsync backup.
    – forthrin
    May 28 at 20:18












    @forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
    – nohillside
    May 29 at 4:16




    @forthin nothing stops you from running the find from the top level of your backup source. And use elaborate rules to only skip symlinks in directories you want to ignore them :-)
    – nohillside
    May 29 at 4:16












    up vote
    1
    down vote













    If you don't want to see messages about any skipped files, you can use --info=skip0 if your version of rsync is not too old.



    If you don't want to see messages on skipped symbolic links, but do want the messages if any other files are skipped, then unfortunately rsync's output control options don't seem to be fine-grained enough for that.



    See rsync --info=help for a list of things you can adjust in rsync output.






    share|improve this answer

























      up vote
      1
      down vote













      If you don't want to see messages about any skipped files, you can use --info=skip0 if your version of rsync is not too old.



      If you don't want to see messages on skipped symbolic links, but do want the messages if any other files are skipped, then unfortunately rsync's output control options don't seem to be fine-grained enough for that.



      See rsync --info=help for a list of things you can adjust in rsync output.






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        If you don't want to see messages about any skipped files, you can use --info=skip0 if your version of rsync is not too old.



        If you don't want to see messages on skipped symbolic links, but do want the messages if any other files are skipped, then unfortunately rsync's output control options don't seem to be fine-grained enough for that.



        See rsync --info=help for a list of things you can adjust in rsync output.






        share|improve this answer













        If you don't want to see messages about any skipped files, you can use --info=skip0 if your version of rsync is not too old.



        If you don't want to see messages on skipped symbolic links, but do want the messages if any other files are skipped, then unfortunately rsync's output control options don't seem to be fine-grained enough for that.



        See rsync --info=help for a list of things you can adjust in rsync output.







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered May 29 at 8:02









        telcoM

        10.1k11032




        10.1k11032






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446440%2fexclude-symbolic-links-from-rsync-without-excessive-notification%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?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay