Ubuntu Server VPS restore previous installation

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








up vote
0
down vote

favorite












I have a Ubuntu 16.04 as my webserver, now that i have everything ready and working is it possible to create some sort of image/backup/clone so that if i mess something up or want to test new versions that i can restore to this current state?



Example 1, i clean install Ubuntu 17.10 for testing, and after that i will go back to the system 16.04 with all settings/config i have now running.



Example 2, my VPS gets broken or crashes, i can reinstall Ubuntu again but then also need to configure all partitions settings etc again.
Is it possible on a clean install to use some sort of iso/clone that sets back my current runnig system over the fresh install?










share|improve this question





















  • Actually, I think you better use virtualbox. It's free, you can have several at once, and you can use snapshots.
    – davidbaumann
    Jan 29 at 13:50














up vote
0
down vote

favorite












I have a Ubuntu 16.04 as my webserver, now that i have everything ready and working is it possible to create some sort of image/backup/clone so that if i mess something up or want to test new versions that i can restore to this current state?



Example 1, i clean install Ubuntu 17.10 for testing, and after that i will go back to the system 16.04 with all settings/config i have now running.



Example 2, my VPS gets broken or crashes, i can reinstall Ubuntu again but then also need to configure all partitions settings etc again.
Is it possible on a clean install to use some sort of iso/clone that sets back my current runnig system over the fresh install?










share|improve this question





















  • Actually, I think you better use virtualbox. It's free, you can have several at once, and you can use snapshots.
    – davidbaumann
    Jan 29 at 13:50












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a Ubuntu 16.04 as my webserver, now that i have everything ready and working is it possible to create some sort of image/backup/clone so that if i mess something up or want to test new versions that i can restore to this current state?



Example 1, i clean install Ubuntu 17.10 for testing, and after that i will go back to the system 16.04 with all settings/config i have now running.



Example 2, my VPS gets broken or crashes, i can reinstall Ubuntu again but then also need to configure all partitions settings etc again.
Is it possible on a clean install to use some sort of iso/clone that sets back my current runnig system over the fresh install?










share|improve this question













I have a Ubuntu 16.04 as my webserver, now that i have everything ready and working is it possible to create some sort of image/backup/clone so that if i mess something up or want to test new versions that i can restore to this current state?



Example 1, i clean install Ubuntu 17.10 for testing, and after that i will go back to the system 16.04 with all settings/config i have now running.



Example 2, my VPS gets broken or crashes, i can reinstall Ubuntu again but then also need to configure all partitions settings etc again.
Is it possible on a clean install to use some sort of iso/clone that sets back my current runnig system over the fresh install?







server backup restore






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 29 at 12:52









Rick

1




1











  • Actually, I think you better use virtualbox. It's free, you can have several at once, and you can use snapshots.
    – davidbaumann
    Jan 29 at 13:50
















  • Actually, I think you better use virtualbox. It's free, you can have several at once, and you can use snapshots.
    – davidbaumann
    Jan 29 at 13:50















Actually, I think you better use virtualbox. It's free, you can have several at once, and you can use snapshots.
– davidbaumann
Jan 29 at 13:50




Actually, I think you better use virtualbox. It's free, you can have several at once, and you can use snapshots.
– davidbaumann
Jan 29 at 13:50










2 Answers
2






active

oldest

votes

















up vote
0
down vote













That's not the way I would proceed.



I would



  • Take note of all config files I edit.

  • Create a script to automate that edit or to copy the edit over to a backup location. I would store these ON the server AND remotely (the 1st to quickly be able to restore a mistake; the 2nd in case of a reinstall).

  • Restoring a backup = clean install + restore edited files.

You should do this for all the different versions: using settings on 1 version of Ubuntu and then copy them over to another release is generally a bad idea. That would not take into account that releases change how they work. MySQL, as an example, drops settings in between releases and uses different setups between releases. You can not use all the different settings for MySQL 5.7 on MySQL 5.6 or on MySQL 5.5.






share|improve this answer




















  • Or in case of a reinstall to fast setup all the users/ftp settings/website configs/php setups etc. Is There an easy way to backup and restore that? Like php is configured in multiple folder locations i can't just backup some folders and restore them that wil not work
    – Rick
    Jan 29 at 18:12

















up vote
0
down vote













Like with windows, you can create a full ISO of your current installed system. Then from an empty harddrive you can just 'install' that iso and every think is back as it was, is there no program that does that for the Server?






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
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000992%2fubuntu-server-vps-restore-previous-installation%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
    0
    down vote













    That's not the way I would proceed.



    I would



    • Take note of all config files I edit.

    • Create a script to automate that edit or to copy the edit over to a backup location. I would store these ON the server AND remotely (the 1st to quickly be able to restore a mistake; the 2nd in case of a reinstall).

    • Restoring a backup = clean install + restore edited files.

    You should do this for all the different versions: using settings on 1 version of Ubuntu and then copy them over to another release is generally a bad idea. That would not take into account that releases change how they work. MySQL, as an example, drops settings in between releases and uses different setups between releases. You can not use all the different settings for MySQL 5.7 on MySQL 5.6 or on MySQL 5.5.






    share|improve this answer




















    • Or in case of a reinstall to fast setup all the users/ftp settings/website configs/php setups etc. Is There an easy way to backup and restore that? Like php is configured in multiple folder locations i can't just backup some folders and restore them that wil not work
      – Rick
      Jan 29 at 18:12














    up vote
    0
    down vote













    That's not the way I would proceed.



    I would



    • Take note of all config files I edit.

    • Create a script to automate that edit or to copy the edit over to a backup location. I would store these ON the server AND remotely (the 1st to quickly be able to restore a mistake; the 2nd in case of a reinstall).

    • Restoring a backup = clean install + restore edited files.

    You should do this for all the different versions: using settings on 1 version of Ubuntu and then copy them over to another release is generally a bad idea. That would not take into account that releases change how they work. MySQL, as an example, drops settings in between releases and uses different setups between releases. You can not use all the different settings for MySQL 5.7 on MySQL 5.6 or on MySQL 5.5.






    share|improve this answer




















    • Or in case of a reinstall to fast setup all the users/ftp settings/website configs/php setups etc. Is There an easy way to backup and restore that? Like php is configured in multiple folder locations i can't just backup some folders and restore them that wil not work
      – Rick
      Jan 29 at 18:12












    up vote
    0
    down vote










    up vote
    0
    down vote









    That's not the way I would proceed.



    I would



    • Take note of all config files I edit.

    • Create a script to automate that edit or to copy the edit over to a backup location. I would store these ON the server AND remotely (the 1st to quickly be able to restore a mistake; the 2nd in case of a reinstall).

    • Restoring a backup = clean install + restore edited files.

    You should do this for all the different versions: using settings on 1 version of Ubuntu and then copy them over to another release is generally a bad idea. That would not take into account that releases change how they work. MySQL, as an example, drops settings in between releases and uses different setups between releases. You can not use all the different settings for MySQL 5.7 on MySQL 5.6 or on MySQL 5.5.






    share|improve this answer












    That's not the way I would proceed.



    I would



    • Take note of all config files I edit.

    • Create a script to automate that edit or to copy the edit over to a backup location. I would store these ON the server AND remotely (the 1st to quickly be able to restore a mistake; the 2nd in case of a reinstall).

    • Restoring a backup = clean install + restore edited files.

    You should do this for all the different versions: using settings on 1 version of Ubuntu and then copy them over to another release is generally a bad idea. That would not take into account that releases change how they work. MySQL, as an example, drops settings in between releases and uses different setups between releases. You can not use all the different settings for MySQL 5.7 on MySQL 5.6 or on MySQL 5.5.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 29 at 13:01









    Rinzwind

    198k26381512




    198k26381512











    • Or in case of a reinstall to fast setup all the users/ftp settings/website configs/php setups etc. Is There an easy way to backup and restore that? Like php is configured in multiple folder locations i can't just backup some folders and restore them that wil not work
      – Rick
      Jan 29 at 18:12
















    • Or in case of a reinstall to fast setup all the users/ftp settings/website configs/php setups etc. Is There an easy way to backup and restore that? Like php is configured in multiple folder locations i can't just backup some folders and restore them that wil not work
      – Rick
      Jan 29 at 18:12















    Or in case of a reinstall to fast setup all the users/ftp settings/website configs/php setups etc. Is There an easy way to backup and restore that? Like php is configured in multiple folder locations i can't just backup some folders and restore them that wil not work
    – Rick
    Jan 29 at 18:12




    Or in case of a reinstall to fast setup all the users/ftp settings/website configs/php setups etc. Is There an easy way to backup and restore that? Like php is configured in multiple folder locations i can't just backup some folders and restore them that wil not work
    – Rick
    Jan 29 at 18:12












    up vote
    0
    down vote













    Like with windows, you can create a full ISO of your current installed system. Then from an empty harddrive you can just 'install' that iso and every think is back as it was, is there no program that does that for the Server?






    share|improve this answer
























      up vote
      0
      down vote













      Like with windows, you can create a full ISO of your current installed system. Then from an empty harddrive you can just 'install' that iso and every think is back as it was, is there no program that does that for the Server?






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Like with windows, you can create a full ISO of your current installed system. Then from an empty harddrive you can just 'install' that iso and every think is back as it was, is there no program that does that for the Server?






        share|improve this answer












        Like with windows, you can create a full ISO of your current installed system. Then from an empty harddrive you can just 'install' that iso and every think is back as it was, is there no program that does that for the Server?







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 30 at 13:51









        Rick

        1




        1



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000992%2fubuntu-server-vps-restore-previous-installation%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491