10 pmgbackup - Proxmox Mail Gateway Backup and Restore Utility
16 include::pmgbackup.1-synopsis.adoc[]
28 [thumbnail="pmg-gui-backup.png", big=1]
31 {pmg} includes the ability to backup and restore the
32 configuration. This includes the complete config from `/etc/pmg/`, the
33 mail filter rules and the statistic database.
35 NOTE: The backup does not include the network setup, and also no mail
36 data from the postfix queue or the spam or virus quarantine.
38 You can create a backup by simply pressing the 'Backup' button on the
39 GUI, or by using the command line interface:
43 starting backup to: /var/lib/pmg/backup/pmg-backup_2018_01_04_5A4E0436.tgz
47 Backups are stored inside directory `/var/lib/pmg/backup/`. It is
48 usually best to mount a remote file system to that directory, so that
49 the resulting backups gets stored remotely.
51 You can list the contents of that directory with:
56 pmg-backup_2017_11_10_5A05D4B9.tgz 17012
57 pmg-backup_2017_11_13_5A09676A.tgz 16831
58 pmg-backup_2018_01_04_5A4E0436.tgz 21514
61 Restores are also possible using the GUI or command line, and you can
62 select what parts you want to restore:
64 System Configuration::
66 Basically the contents of `/etc/pmg/`.
70 The mail filter rule database.
76 For examply, you can selectively restore the mail filter rules from an
80 # pmgbackup restore --filename pmg-backup_2018_01_04_5A4E0436.tgz --database
81 starting restore: /var/lib/pmg/backup/pmg-backup_2018_01_04_5A4E0436.tgz
83 Proxmox_ruledb.sql: OK
84 Proxmox_statdb.sql: OK
86 Destroy existing rule database
88 run analyze to speed up database queries
89 Analyzing/Upgrading existing Databases...done
97 include::pmg-copyright.adoc[]