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. Follow the steps below to use this feature effectively.

Backing Up cPFence Settings

To create a backup of your cPFence settings, run the following command:

cpfence --backup-cpf-settings

This command will generate a backup file in the /tmp directory with the following naming format:

cpfence_backup_YYYYMMDDHHMMSS.tar.gz

The file contains all necessary settings to restore your configuration later.

Restoring cPFence Settings

To restore your settings from a backup, ensure the backup file is located in the /tmp directory. Then, run the following command:

cpfence --restore-cpf-settings

The system will automatically detect the most recent backup file and prompt you to confirm restoration. If multiple backup files are available, you can choose the newest or cancel the operation.

Important Notes

  • The restore process will extract all settings to their original locations and ensure your cPFence configuration is restored correctly.

  • After restoring, verify your license key in the config file.

    If the license key does not match the new server, you will need to replace it and install the correct license using the following command:

    /opt/cpfence/app/install cPFence-XXXXXXXXXXXXXXXX
  • Don’t forget to restart cPFence after restoring the settings to apply the changes:

    cpfence --restart

Need Assistance?

If you encounter any issues or need further guidance, please reach out to our support team via your client portal.

  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

How to Update cPFence Software & Signatures ?

cPFence software and virus signatures are automatically updated by default, ensuring continuous...

How to Know the Current Installed cPFence Version ?

To check the currently installed version of cPFence and see if an update is available, you can...

How to Uninstall cPFence ?

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

Resolving Delays in cPFence Command Execution

If you notice that cPFence commands are taking an unusually long time to complete, this is likely...

Is cPFence Compatible with Cloudflare and Quic.Cloud?

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