BackupPC, DumpPreUserCmd & DumpPostUserCmd

NethServer Version: 7.6.1810
Module: BackupPC from Stephdl wiki page

Hi all,

My last testing before making the switch to NethServer.

With BackupPC and SME, you specify the User Commands: DumpPreUserCmd and DumpPostUserCmd - /sbin/e-smith/signal-event pre-backup and /sbin/e-smith/signal-event post-backup.

SME server uses the pre-backup command to dump the DBs so they can be backup.

NethServer has the following command: post-backup-config, post-backup-data, post-restore-config, post-restore-data, pre-backup-config, pre-backup-data, pre-restore-config, and pre-restore-data.

Which ones are equivalent to the SME server’ones?
Do I have to use the ones for data and config?

Also, is there a special command with LDAP to backup and restore it?

Any comment appreciated,


Hi all,

I just did a standard backup including configuration and looked at the mesages log:

  • /sbin/e-smith/signal-event pre-backup-config
    – Did the backup of configuration
    /sbin/e-smith/signal-event post-backup-config

  • /sbin/e-smith/signal-event pre-backup-data
    – Did the backup of data
    /sbin/e-smith/signal-event post-backup-data

It looks like “pre-backup-config” takes care of LDAP.

I will try:

  • /sbin/e-smith/signal-event pre-backup-config
    /sbin/e-smith/signal-event pre-backup-data

Do the backup.

  • /sbin/e-smith/signal-event post-backup-config
    /sbin/e-smith/signal-event post-backup-data

Am I right?


I’d say yes :slight_smile:

If you need the dump from LDAP, use the pre-backup-config, if you need the mysql dump, use the pre-backup-data.

Or call both :slight_smile: Be sure to call both post-backup-config and post-backup-data to cleanup the dumps.

Hi Giacomo,

Thank you for your confirmation.

I will test it on my new BackupPC that I managed to upgrade to version 4.3.0 of Nov 25, 2018.


1 Like

From what repository did you upgraded bacuppc, mine also is the v4.3 but it did not come from the copr, I used the firewallservices repository

Hi stephdl,

I installed from your module

then I updated to 4.3.0 following this page for prerequisites

and this page to update

So far, everything is working properly.


Hi, thanks michelandre for sharing these details. I was also checking the updated version 4.3.1 through veritech.

Hi all,

It looks like everything is working fine now with BackupPC-4.3.0.

I wrote a documentation in French on how to backup/restore from a NethServer-7.6.1810 including a WordPress web site to a freshly installed server to make a clone of SOURCE server to DESTINATION server.

This is a RC-001 document, any comment/suggestion appreciated,


1 Like