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,

Michel-André

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.

Conclusion:
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?

Michel-André

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.

Michel-André

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
https://wiki.nethserver.org/doku.php?id=module:backuppc

then I updated to 4.3.0 following this page for prerequisites
https://www.veritech.net/centos-7-backuppc-installation-guide/

and this page to update
https://srbu.se/index.php?option=com_content&view=article&id=201:upgrading-backuppc-to-v4-2-1&catid=8&Itemid=121&lang=en

So far, everything is working properly.

Michel-André

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.

https://www.micronator.org/affaires/produit/nethserver-101-cahier-11backuppc/

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

Michel-André

1 Like