How can I copy a folder without alternating their original dates of creation?

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











up vote
2
down vote

favorite












I found an old archive filled with old folders on my pc.
I would like to know how to make a copy of this archive, but keeping everything intact, including their date of creation










share|improve this question







New contributor




MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    2
    down vote

    favorite












    I found an old archive filled with old folders on my pc.
    I would like to know how to make a copy of this archive, but keeping everything intact, including their date of creation










    share|improve this question







    New contributor




    MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I found an old archive filled with old folders on my pc.
      I would like to know how to make a copy of this archive, but keeping everything intact, including their date of creation










      share|improve this question







      New contributor




      MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I found an old archive filled with old folders on my pc.
      I would like to know how to make a copy of this archive, but keeping everything intact, including their date of creation







      command-line






      share|improve this question







      New contributor




      MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 41 mins ago









      MelanieDeschene

      111




      111




      New contributor




      MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      MelanieDeschene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote













          Read man cp, and, in addition to the --recursive switch use one of:



           -p same as --preserve=mode,ownership,timestamps

          --preserve[=ATTR_LIST]
          preserve the specified attributes (default: mode,ownership,timestamps), if possible
          additional attributes: context, links, xattr, all





          share|improve this answer



























            up vote
            2
            down vote













            sudo cp -rp /home/my_home /media/backup/my_home or
            sudo cp -a /home/my_home /media/backup/my_home



            This should do it.



            -r is recursive



            -p is preserve-mode






            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',
              convertImagesToLinks: true,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );






              MelanieDeschene is a new contributor. Be nice, and check out our Code of Conduct.









               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1085231%2fhow-can-i-copy-a-folder-without-alternating-their-original-dates-of-creation%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
              3
              down vote













              Read man cp, and, in addition to the --recursive switch use one of:



               -p same as --preserve=mode,ownership,timestamps

              --preserve[=ATTR_LIST]
              preserve the specified attributes (default: mode,ownership,timestamps), if possible
              additional attributes: context, links, xattr, all





              share|improve this answer
























                up vote
                3
                down vote













                Read man cp, and, in addition to the --recursive switch use one of:



                 -p same as --preserve=mode,ownership,timestamps

                --preserve[=ATTR_LIST]
                preserve the specified attributes (default: mode,ownership,timestamps), if possible
                additional attributes: context, links, xattr, all





                share|improve this answer






















                  up vote
                  3
                  down vote










                  up vote
                  3
                  down vote









                  Read man cp, and, in addition to the --recursive switch use one of:



                   -p same as --preserve=mode,ownership,timestamps

                  --preserve[=ATTR_LIST]
                  preserve the specified attributes (default: mode,ownership,timestamps), if possible
                  additional attributes: context, links, xattr, all





                  share|improve this answer












                  Read man cp, and, in addition to the --recursive switch use one of:



                   -p same as --preserve=mode,ownership,timestamps

                  --preserve[=ATTR_LIST]
                  preserve the specified attributes (default: mode,ownership,timestamps), if possible
                  additional attributes: context, links, xattr, all






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 21 mins ago









                  waltinator

                  21k74168




                  21k74168






















                      up vote
                      2
                      down vote













                      sudo cp -rp /home/my_home /media/backup/my_home or
                      sudo cp -a /home/my_home /media/backup/my_home



                      This should do it.



                      -r is recursive



                      -p is preserve-mode






                      share|improve this answer
























                        up vote
                        2
                        down vote













                        sudo cp -rp /home/my_home /media/backup/my_home or
                        sudo cp -a /home/my_home /media/backup/my_home



                        This should do it.



                        -r is recursive



                        -p is preserve-mode






                        share|improve this answer






















                          up vote
                          2
                          down vote










                          up vote
                          2
                          down vote









                          sudo cp -rp /home/my_home /media/backup/my_home or
                          sudo cp -a /home/my_home /media/backup/my_home



                          This should do it.



                          -r is recursive



                          -p is preserve-mode






                          share|improve this answer












                          sudo cp -rp /home/my_home /media/backup/my_home or
                          sudo cp -a /home/my_home /media/backup/my_home



                          This should do it.



                          -r is recursive



                          -p is preserve-mode







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 20 mins ago









                          Lewis Smith

                          867




                          867




















                              MelanieDeschene is a new contributor. Be nice, and check out our Code of Conduct.









                               

                              draft saved


                              draft discarded


















                              MelanieDeschene is a new contributor. Be nice, and check out our Code of Conduct.












                              MelanieDeschene is a new contributor. Be nice, and check out our Code of Conduct.











                              MelanieDeschene is a new contributor. Be nice, and check out our Code of Conduct.













                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1085231%2fhow-can-i-copy-a-folder-without-alternating-their-original-dates-of-creation%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Comments

                              Popular posts from this blog

                              What does second last employer means? [closed]

                              List of Gilmore Girls characters

                              Confectionery