How to Move cPFence to a New Server?

Follow these step-by-step instructions to seamlessly transfer cPFence to a new server:

Steps to Move cPFence

  1. Export Backup from the Old Server:
    1. Run the following command to create a backup of your cPFence settings:
      cpfence --backup-cpf-settings
    2. Use an SFTP client (e.g., Termius) to access both the old and new servers.
    3. Copy the backup file (/tmp/cpfence_backup_*.tar.gz) from the old server to the same location on the new server (/tmp/).
  2. Uninstall cPFence from the Old Server:

    Run this command to remove cPFence from the old server:

    cpfence --uninstall
    
    # You can also use this command :
    
    /opt/cpfence/app/setup/uninstall
  3. Reissue the License for the New Server:

    Go to your license details page and click Reissue. This step updates your license to work with the new server’s IP.

  4. Install cPFence on the New Server:

    Run the install command provided with your license on the new server to install cPFence, example:

    bash <(curl -ks https://api.cpfence.app/install.sh) -k cPFence-XXXXXXXXXXXXXX
  5. Import Backup to the New Server:
    1. Ensure the backup file from Step 1 is present in the /tmp/ directory on the new server.
    2. Restore the backup with this command:
      cpfence --restore-cpf-settings

Important Note

    • Restart cPFence on the new server after importing the backup to apply all settings:
cpfence --restart
  • If you encounter any issues, contact our support team for assistance.

By following these steps, you can seamlessly migrate cPFence to a new server without losing your configuration or protection.

  • 1 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

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...