CityHost.UA
Help and support

FASTPANEL: setting up backup

By default, the FastPanel control panel does not have user data backup configured. Therefore, you should take care of this in advance to preserve the ability to restore the operation of the sites if necessary.

 

To enter the FastPanel backup settings menu, select Management -> Backups

 

 

FastPanel supports various backup methods — via SCP, FTP, Google Drive, local storage, and also integrates with Dropbox and FastBackup for convenient cloud storage.

 

To start managing your backups, in the backup section, click New Account to create an account.

 

 

In the FastPanel backup account creation menu, you need to fill in the following fields:

 

  1. Account Name - Specify an arbitrary name for easy identification.
  2. Type - Select the method of storing the backup copy. Available options:
  • Local – saving copies directly on the server. This option is less reliable, since in the event of a hack or server failure, backup copies may be lost. A large amount of free disk space is also required: at least 2 times the size of the user's data (for example, 10 GB of data requires 20+ GB of free space).
  • SCP – secure copying to a remote server via SSH. First, a local archive is created, then transferred to an external storage. Requires free space on the server for intermediate storage of the archive. * **FTP** – transferring the archive to a remote FTP storage. The principle of operation is similar to SCP — the backup is first created locally.
  • Google – transfer of copies to Google Drive. Allows you to automate cloud storage, increasing data security.
  • Dropbox – connect to Dropbox to store backups in the file sharing service.
  • FastBackup – branded cloud storage from the developers of FastPanel.

 

    3. Email (optional) Required when connecting Google Drive or Dropbox to identify the account.

 

 

After filling in all the fields, click Save.

 

Configuring backup to FTP storage

 

The VDS package includes free FTP storage in the data center in Ukraine and Germany capacity of 50 GB. Let's configure backup to FTP storage, for this we select the FTP protocol in the account creation menu.

 

 

In order to fill in the fields for connecting to the FTP storage, go to Control Panel - VDS settings and enable FTP storage: To do this, click Backup storage settings  in the country that is most convenient for you fits:

 

 

Next, enable our FTP storage, by moving the slider to the “On”

state

 

 

 

After activating the FTP storage in the control panel you will see:

 

  • • percentage of occupied disk space;
  • • connection data: host, login, password (it can be generated by a button or entered manually);
  • • list of allowed IP addresses that will be allowed to connect to the storage.

 

Attention! After clicking the "Save" button, the password will no longer be displayed. Be sure to save it immediately after creating it.

 

 

So, after gaining access to the FTP repository, we:

 

  • • generated or set a password for the FTP user,
  • • added the server IP address to the list of allowed,
  • • saved all the necessary data for connection.

 

Open the backup account creation menu in FastPanel and fill in the fields:

  1. User — FTP user login
  2. Password — FTP password
  3. Email — optional field
  4. Host — FTP server address
  5. Path — by default, you can leave the root (/). If necessary, you can create a separate directory in advance using an FTP client (for example, FileZilla) in which backups will be stored
  6. Port — specify the standard FTP port 21

 

 

After entering all the data, click Save

 

Next, go to the Backup plans:

 

 

Press the button New plan and fill in the necessary fields:

 

  1. Backup plan name
  2. Backup account (select the one you created)
  3. Copy limit — is the maximum number of backup copies that will be stored on the FTP storage at the same time. Newer copies will replace the oldest when this limit is reached.
  4. Sites that will be included in the backup
  5. Databases to be backed up
  6. Launch time

 

On this setting completed.

 

Backup logs can be checked directly on the server. Unfortunately, this option is not available from the FastPanel web interface.

 

The backup log file is located at: /var/log/fastpanel2/backup.log

 

For more information, see the official documentation from FasPanel: https://kb.fastpanel.direct/