Asterisk backup from FreePBX

Good day Community.

I create this post to chekc if anyone knows how to make a Full backup to the configuration made on FreePBX and asterisk.

To make it clear I was able to make a full backup about the freepbx config on the backup and restore module but I did some changes through the SSH directly to the asterisk and the configration was not saved on the backup.

So I am wondering if anyone knows about how to make a full backup?


What files did you change? You can include any additional custom files in backup.

changed the Postfix folder, can I add the folder or have to add manually the files changed?

Postfix is not Asterisk.

Yes, you can add a folder to the backup as well

My bad.

How should set the backup to save this folder?

See step 4c

Thanks for that.

I tried but now getting this error:
Error Output:

rsync: send_files failed to open “/etc/postfix/sasl_passwd”: Permission den
ied (13)
rsync: send_files failed to open “/etc/postfix/sasl_passwd.db”: Permission
denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (c
ode 23) at main.c(1179) [sender=3.1.2]

Any clues?

Give it permissions?


Great answer! I did try but may I do not know enough

How Could I give permission to the backup task?

To clarify , the FreePBX backup runs as the asterisk user but /etc/postfix is normally owned by root, you could loosen postfix ACL, not a good thing, but probably best to have your postfix run as the asterisk user or you risk exposing stuff you don’t want to do.


will give insight. Perhaps


would be a better fit for you , neither give a damn if you are using FreePBX or not.

Ok I could change the user permission but I just would like to know if anyone has done this befores since i am afraid that if I changed the permission the emails are going to stop? and I have to re run again the changes made on postfix?

I would suggest you contemplate adding a more catholic ‘bare metal’ backup solution rather than rely on a ‘service specific’ one., Then if by any chance FreePBX ever goes ‘sideways’ . . .

(. . as it has in the past :wink: )

1 Like

As dicko suggested; when you want to backup an entire server setup, beyond the application specifics.
Think true disaster recovery; from boot sectors, to operating systems, to customizations, to application specific. For on-premise servers, I highly suggest Veeam Backup and Recovery solutions. This is a solid solution that works in both a virtual server and dedicated server and workstation world.

We utilize their paid version of the product for our enterprise. We are VMWare based virtual server setup with mixed operating systems and Windows desktops.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.