Join the community today
Become a Member

CSF How To Backup & Restore CSF Firewall Configuration Profiles

Discussion in 'Other Centmin Mod Installed software' started by eva2000, Apr 7, 2019.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    6:18 PM
    Nginx 1.25.x
    MariaDB 10.x
    How to backup/restore CSF Firewall configuration instructions have been added to

    To backup CSF Firewall's current configuration profile run command where backup-name is name of your back which will have auto appended a date timestamp prefix in front when running csf --profile list command
    Code (Text):
    csf --profile backup backup-name

    To restore original CSF firewall backup profile, run commands to list backup profiles, then restore specific named backup profile, restart CSF Firewall+LFD services, and finally update CSF Firewall
    Code (Text):
    csf --profile list
    csf --profile restore 1547784956_cmm_after_whitelist
    csf -ra
    csf -u

    profile list will list csf profile backups look for listing name containing
    cmm_after_whitelist with date timestamp prefix in front i.e. for me date timestamp prefix is 1547784956_cmm_after_whitelist

    example csf --profile list output
    Code (Text):
    csf --profile list
    Configuration Profiles
    Configuration Backups
    1547784956_cmm_after_whitelist (Fri Jan 18 04:15:56 2019)
    1547784954_cmm_b4_whitelist (Fri Jan 18 04:15:54 2019)
    1547784920_cmm_b4_shodan_block (Fri Jan 18 04:15:20 2019)
    1547784919_cmm_b4_censys_block (Fri Jan 18 04:15:19 2019)
    1547784918_cmm_default_tweaked (Fri Jan 18 04:15:18 2019)
    1547784917_cmm_before_ptload_action (Fri Jan 18 04:15:17 2019)
    1547784915_initial_default (Fri Jan 18 04:15:15 2019)
    1547784914_pre_v12_09_upgrade (Fri Jan 18 04:15:14 2019)
Thread Status:
Not open for further replies.