How do I backup my file system with tar and multi-thread?












1















I would like to backup my file system and do it with parallel. I found this guide: https://help.ubuntu.com/community/BackupYourSystem/TAR
Where they give me the command:



tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / 


I found that I should put -I pigz in the beginning of the command, however this gives me the error:



tar: Conflicting compression options


How can this be solved?










share|improve this question























  • With the modification, it's your conflicting command looks like this: tar -I pigz -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / ?

    – Emmet
    2 days ago
















1















I would like to backup my file system and do it with parallel. I found this guide: https://help.ubuntu.com/community/BackupYourSystem/TAR
Where they give me the command:



tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / 


I found that I should put -I pigz in the beginning of the command, however this gives me the error:



tar: Conflicting compression options


How can this be solved?










share|improve this question























  • With the modification, it's your conflicting command looks like this: tar -I pigz -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / ?

    – Emmet
    2 days ago














1












1








1








I would like to backup my file system and do it with parallel. I found this guide: https://help.ubuntu.com/community/BackupYourSystem/TAR
Where they give me the command:



tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / 


I found that I should put -I pigz in the beginning of the command, however this gives me the error:



tar: Conflicting compression options


How can this be solved?










share|improve this question














I would like to backup my file system and do it with parallel. I found this guide: https://help.ubuntu.com/community/BackupYourSystem/TAR
Where they give me the command:



tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / 


I found that I should put -I pigz in the beginning of the command, however this gives me the error:



tar: Conflicting compression options


How can this be solved?







backup tar multi-core






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









Jesper.LindbergJesper.Lindberg

526




526













  • With the modification, it's your conflicting command looks like this: tar -I pigz -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / ?

    – Emmet
    2 days ago



















  • With the modification, it's your conflicting command looks like this: tar -I pigz -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / ?

    – Emmet
    2 days ago

















With the modification, it's your conflicting command looks like this: tar -I pigz -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / ?

– Emmet
2 days ago





With the modification, it's your conflicting command looks like this: tar -I pigz -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / ?

– Emmet
2 days ago










1 Answer
1






active

oldest

votes


















2














The z flag you have in your command means:



   -z, --gzip, --gunzip, --ungzip
Filter the archive through gzip(1).


So if you then use -I which means:



  -I, --use-compress-program=COMMAND
Filter data through COMMAND. It must accept the -d option, for decompression.
The argument can contain command line options.


Then you are telling it to use both gzip and pigz, so it complains because you've given it conflicting compression options. So just remove the z:



tar -cvf backup.tar.gz -I pigz --exclude=/backup.tar.gz --one-file-system / 


Note that I also removed the -p since that shouldn't have any effect when creating an archive:



  -p, --preserve-permissions, --same-permissions
extract information about file permissions (default for superuser)


You should use that when extracting, not when creating the archive.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124015%2fhow-do-i-backup-my-file-system-with-tar-and-multi-thread%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    The z flag you have in your command means:



       -z, --gzip, --gunzip, --ungzip
    Filter the archive through gzip(1).


    So if you then use -I which means:



      -I, --use-compress-program=COMMAND
    Filter data through COMMAND. It must accept the -d option, for decompression.
    The argument can contain command line options.


    Then you are telling it to use both gzip and pigz, so it complains because you've given it conflicting compression options. So just remove the z:



    tar -cvf backup.tar.gz -I pigz --exclude=/backup.tar.gz --one-file-system / 


    Note that I also removed the -p since that shouldn't have any effect when creating an archive:



      -p, --preserve-permissions, --same-permissions
    extract information about file permissions (default for superuser)


    You should use that when extracting, not when creating the archive.






    share|improve this answer




























      2














      The z flag you have in your command means:



         -z, --gzip, --gunzip, --ungzip
      Filter the archive through gzip(1).


      So if you then use -I which means:



        -I, --use-compress-program=COMMAND
      Filter data through COMMAND. It must accept the -d option, for decompression.
      The argument can contain command line options.


      Then you are telling it to use both gzip and pigz, so it complains because you've given it conflicting compression options. So just remove the z:



      tar -cvf backup.tar.gz -I pigz --exclude=/backup.tar.gz --one-file-system / 


      Note that I also removed the -p since that shouldn't have any effect when creating an archive:



        -p, --preserve-permissions, --same-permissions
      extract information about file permissions (default for superuser)


      You should use that when extracting, not when creating the archive.






      share|improve this answer


























        2












        2








        2







        The z flag you have in your command means:



           -z, --gzip, --gunzip, --ungzip
        Filter the archive through gzip(1).


        So if you then use -I which means:



          -I, --use-compress-program=COMMAND
        Filter data through COMMAND. It must accept the -d option, for decompression.
        The argument can contain command line options.


        Then you are telling it to use both gzip and pigz, so it complains because you've given it conflicting compression options. So just remove the z:



        tar -cvf backup.tar.gz -I pigz --exclude=/backup.tar.gz --one-file-system / 


        Note that I also removed the -p since that shouldn't have any effect when creating an archive:



          -p, --preserve-permissions, --same-permissions
        extract information about file permissions (default for superuser)


        You should use that when extracting, not when creating the archive.






        share|improve this answer













        The z flag you have in your command means:



           -z, --gzip, --gunzip, --ungzip
        Filter the archive through gzip(1).


        So if you then use -I which means:



          -I, --use-compress-program=COMMAND
        Filter data through COMMAND. It must accept the -d option, for decompression.
        The argument can contain command line options.


        Then you are telling it to use both gzip and pigz, so it complains because you've given it conflicting compression options. So just remove the z:



        tar -cvf backup.tar.gz -I pigz --exclude=/backup.tar.gz --one-file-system / 


        Note that I also removed the -p since that shouldn't have any effect when creating an archive:



          -p, --preserve-permissions, --same-permissions
        extract information about file permissions (default for superuser)


        You should use that when extracting, not when creating the archive.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        terdonterdon

        66.8k12139221




        66.8k12139221






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124015%2fhow-do-i-backup-my-file-system-with-tar-and-multi-thread%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局