Best way to do image of vps?

Discussion in 'Installation/Configuration' started by pecka33, Oct 20, 2021.

  1. pecka33

    pecka33 Member

    Hello,
    do you have any idea/manual what is the best way to do image of vps? My vps provider can do this, he backup complete image of vps every day, but if i would like to restore it, i have to pay for it - i can not get image of vps from them, restore can do only hosting provider. So i would like to do my own image of vps and in case i get some problem, restore it. What is your idea, what are you using for this?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The image type that your VPS provider is taking can only be made from the host system and as you probably don't have access to the host system where this VPS resides on, then you can't take it yourself.

    Solutions:

    a) Use a different VPS hoster that does not charge for restoring a backup ;)
    b) Use a normal Linux backup tool and back up your VPS as if is a normal server.
     
  3. pecka33

    pecka33 Member

    Thank you. Do you think that is sufficient to do backup with rsync to remote server? Transfer all files in root like home, etc...
    And when something get wrong with my vps, i can move theese files back and will be all fine? Or is here any othere solution i have to do?
    Or i need to do image of vps to iso file?
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I would vote for @till alternative a). If you can not change hosting provider, just pay for the restore. You do not need to restore often, so maybe the cost is low anyway.
    If you create a hodgepodge of host image and restore system, how do you make sure you really can restore the image when needed?
     
  5. pecka33

    pecka33 Member

    Thank you. I am using HP server with iLO admin panel - remote console. I found that via console i can standard boot file from iso in case i need to install system. I can see that there is option to create disk image.
    So i create via PowerIso new clear file and save it as iso.
    In iLO remote console i can not create disk image directly, but i have to choose any iso file in my pc/usb disk/dvd. So i choose my clear iso file created via PowerIso and did image of vps.
    I case i need to restore vps, i hope i can boot this iso file and everything will be fine.

    Do you think that thats is enough?
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I do not have the data to make any kind of informed decision. Your best chance, I think, is to test if restore works.
     
  7. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Just a note that this works for most files, except those related to the boot loader, and you probably also need a copy of your disk partition table and maybe other partition headers (eg. lvm if using that). You may have a disk partition mounted as /boot or a UEFI disk partition which need proper backup/setup.

    As @Taleman said, whatever route you go with your backups, test that you can restore a working system from it.
     

Share This Page