How to Back Up and Restore cPFence Settings?

Backing up and restoring your cPFence settings is now easier than ever with the newly added backup and restore functionality. This ensures a seamless migration across servers or recovery in case of unexpected changes.

WebUI Method

Open the cPFence WebUI on your Main Control Panel server.

 

 

 

  1. Navigate to Tools & Utilities from the left menu.
  2. Scroll down to the System Utilities section.
  3. Click on Backup & Restore cPFence settings.
  4. Choose between Backup Settings or Restore Settings as needed.

CLI Method

Backing Up cPFence Settings

To create a manual backup of your settings, run:

cpfence --backup-cpf-settings

This creates a file in /var/cpf_backups with the format:

cpfence_backup_YYYYMMDDHHMMSS.tar.gz

Automatic Daily Backups

cPFence automatically performs daily backups and retains the last 30 for safety.

Restoring the Latest Backup

cpfence --restore-cpf-settings

This will restore the most recent backup in the directory.

Restoring a Specific Backup

cpfence --restore-cpf-settings cpfence_backup_20250603231650.tar.gz

Make sure the specified file exists in /var/cpf_backups.

Post-Restore Notes

  • Restoration re-applies all previous settings.
  • Ensure your license key is valid on the current server. If not, reinstall it using:
/opt/cpfence/app/install cPFence-XXXXXXXXXXXXXXXX
  • Restart cPFence to apply changes:
cpfence --restart

Need Further Assistance?

If you encounter any issues or need additional help, feel free to reach out to our support team via your client portal.

  • 0 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

Is cPFence Compatible with Cloudflare, BunnyCDN and Quic.Cloud?

Yes, cPFence is fully compatible with Cloudflare, Quic.Cloud, and BunnyCDN. In fact, we recommend...

Why Do I See "could not change directory to /root: Permission denied" Warnings?

You may occasionally encounter the following warning message while using cPFence: could not...

How to Uninstall cPFence ?

If you need to remove cPFence from your system, follow the steps below to uninstall the software...

Configuring Hostname on Ubuntu for cPFence Emails and Features

Setting a proper hostname on your server is important for several reasons, including being able...

How to Set Up Slack Notifications in cPFence?

If you'd like to receive cPFence alerts on your desktop or mobile via Slack, follow the steps...