Question about backup

Discussion in 'General' started by corto, May 17, 2020.

  1. corto

    corto Member

    Hello here!
    Please, what is the best way to make a complete backup of ispconfig, ftp ...
    I'm on debian 9
     
    Last edited: May 17, 2020
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    It's not clear what you want to backup, just the ISPConfig related filed and database? For that, make a copy (eg. tar archive containing) /usr/local/ispconfig/ and /etc, and dump the dbispconfig database. Once that's done you can move your backup files off the server via ftp or another tool (ftp is not the tool to create such a backup).
     
    corto likes this.
  3. corto

    corto Member

    sorry didn't saw you answer.
    Can you explain how to do that to tar?
    what i want is to get a backup of the installation, sites... and get posibility to put on server if needed.
    thx
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    To backup a website, you backup the files and dump the database to a file.
    For example with tar, as root and change directory so web/ is a subdir of working directory.
    Code:
    # tar cf /tmp/suitablename.tar ./web
    Database can be dumped from command line, but easier way is using PHPMyadmin. Take the database dump and file backup at about the same time so they are consistent.
    Later the website can be restored from these two files, or moved to some other host computer.
     
    corto likes this.
  5. corto

    corto Member

    thx Taleman!
    will give a try
     

Share This Page