Server cloneing or backup

  • Hello,


    Since I have with my vServer no snapshot function, I wanted to ask how I can create an image or a backup from the whole server so that in the case of problems I can simply restore everything?


    thank you

    Edited once, last by Goodpeace ().

  • Backup of full server is useless...


    You should considere to only backup your data which for i-MSCP means:

    • /etc/passwd and /etc/passwd- files
    • /etc/shadow /etc/shadow- files
    • /etc/group /etc/group- files
    • /etc/imscp directory (iMSCP conffiles)
    • /etc/mysql directory (MySQL conffiles)
    • /var/lib/mysql directory (MySQL data)
    • /var/mail/virtual directory (Mail data)
    • /var/www directory (Httpd data + i-MSCP data)

    For the rest, all can be recreated by running the i-MSCP installer.


    For the way to backup those files/directories, google is your friend.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Okay thx , i will take a look on google :)

  • Is there maybe a possiblity to only save the configuration (Domains, Emailaccount and so on), and if anything fails that this can be imported?

  • Is there maybe a possiblity to only save the configuration (Domains, Emailaccount and so on), and if anything fails that this can be imported?


    Then you have to backup at least:
    - files from /var/www/virtual
    - mails from /var/mail/virtual
    - databases from /var/lib/mysql and /etc/mysql directory (backup those only when mysql server will be down)


    About configuration - backup all /etc/imscp directory and also all databases related to imscp


    This should be enough.


    Also remember that if you have installed any plugins and software related to them, you will have to install it again "when anything fails" and if you will have to reinstall your server.

  • I made good experiences with

    • rsync for /var/www/, /var/mail/ and /etc/
    • mysqldump --all-databases

    Then you have all you need. And you can do the mysql-dump without stopping mysql

  • there is also rdiff http://rdiff-backup.nongnu.org/
    it is using rsync but also saves incremental states. useful for /var/www/virtual backups, so you can restore a specified moment. while it doesn't take the space of multiple full-backups. kind of mac time machine or windows shadow copy

  • there is also rdiff http://rdiff-backup.nongnu.org/
    it is using rsync but also saves incremental states. useful for /var/www/virtual backups, so you can restore a specified moment. while it doesn't take the space of multiple full-backups. kind of mac time machine or windows shadow copy

    This is a very good alternative, i my case i want to backup /:

    Code
    1. rdiff-backup / backup

    In case of some recovery:


    Code
    1. cp -a backup /

    Right ? :)

  • badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206