How to Create Backup in VestaCP

By default, the VestaCP panel makes backups once a day. The last three backups are saved.

We also provide free weekly backups.

You can make a manual backup at any time. For example, before making changes to the VPS or database settings. Click the BACKUP tab in VestaCP. Then click the button CREATE BACKUP.

You will receive a notification to the mail indicated in the panel when the backup is ready. If the backup has already been created on that day, it will be replaced with the new one. Backups can be copied to your local computer. A copy will be available in the BACKUP section.

Create backup

You can restore some components from the backup. For example, if you only need to restore site files, select the WEB-domain and click RESTORE.

Click Restore

It is not necessary to back up the entire VPS. Only important directories can be saved. Press BACKUP – BACKUP EXCLUSIONS – CONFIGURE to exclude unnecessary elements from the backup.

Configure Backup

FTP Backup

Also, in the VestaCP you can configure saving backups to a remote FTP server. This will keep your latest backups available even if the VPS server crashes.

  1. Connect to the server via SSH.
  2. Run the command to create the file:
    nano /usr/local/vesta/conf/ftp.backup.conf
  3. Add to the created file:
    HOST='IP.of.your.server'

    PORT='21'

    USERNAME='login'

    PASSWORD='password'

    BPATH='/backup-vesta'
    BPATH= '/backup-vesta' – path to the folder where the backup will be saved. Login and password are required to connect to the server.
  4. Save your changes.
  5. Open the file vesta.conf:
    nano /usr/local/vesta/conf/vesta.conf
  6. In the file vesta.conf replace the line BACKUP_SYSTEM='local':
    BACKUP_SYSTEM='local,ftp'
    If you set the value BACKUP_SYSTEM='ftp', then the backups will be saved only to the remote FTP server.
    Save your changes to the file.
  7. Check your backup settings. Go to the BACKUP section and try creating a new copy. This copy should be set to type local, FTP.

If you have any questions, please create a ticket to technical support.