]> git.proxmox.com Git - pmg-docs.git/blame - pmgbackup.adoc
api-viewer: properly HTML encode properties
[pmg-docs.git] / pmgbackup.adoc
CommitLineData
aebeb2f5
DM
1[[chapter_pmgbackup]]
2ifdef::manvolnum[]
3pmgbackup(1)
4============
5:pmg-toplevel:
6
7NAME
8----
9
10pmgbackup - Proxmox Mail Gateway Backup and Restore Utility
11
12
13SYNOPSIS
14--------
15
16include::pmgbackup.1-synopsis.adoc[]
17
18DESCRIPTION
19-----------
20endif::manvolnum[]
21ifndef::manvolnum[]
22Backup and Restore
23==================
24:pmg-toplevel:
25endif::manvolnum[]
26
00a7fa74
DM
27ifndef::manvolnum[]
28image::images/screenshot/pmg-gui-backup.png[]
29endif::manvolnum[]
30
31{pmg} includes the ability to backup and restore the
32configuration. This includes the complete config from `/etc/pmg/`, the
33mail filter rules and the statistic database.
34
35NOTE: The backup does not include the network setup, and also no mail
36data from the postfix queue or the spam or virus quarantine.
37
38You can create a backup by simply pressing the 'Backup' button on the
39GUI, or by using the command line interface:
40
41----
42# pmgbackup backup
43starting backup to: /var/lib/pmg/backup/pmg-backup_2018_01_04_5A4E0436.tgz
44backup finished
45----
46
47Backups are stored inside directory `/var/lib/pmg/backup/`. It is
48usually best to mount a remote file system to that directory, so that
49the resulting backups gets stored remotely.
50
51You can list the contents of that directory with:
52
53----
54# pmgbackup list
55....
56pmg-backup_2017_11_10_5A05D4B9.tgz 17012
57pmg-backup_2017_11_13_5A09676A.tgz 16831
58pmg-backup_2018_01_04_5A4E0436.tgz 21514
59----
60
61Restores are also possible using the GUI or command line, and you can
62select what parts you want to restore:
63
64System Configuration::
65
66Basically the contents of `/etc/pmg/`.
67
68Rule Database::
69
70The mail filter rule database.
71
72Statistic::
73
74All statistical data.
75
76For examply, you can selectively restore the mail filter rules from an
77older backup:
78
79----
80# pmgbackup restore --filename pmg-backup_2018_01_04_5A4E0436.tgz --database
81starting restore: /var/lib/pmg/backup/pmg-backup_2018_01_04_5A4E0436.tgz
82config_backup.tar: OK
83Proxmox_ruledb.sql: OK
84Proxmox_statdb.sql: OK
85version.txt: OK
86Destroy existing rule database
87Create new database
88run analyze to speed up database queries
89Analyzing/Upgrading existing Databases...done
90restore finished
91----
92
93
aebeb2f5
DM
94
95
96ifdef::manvolnum[]
97include::pmg-copyright.adoc[]
98endif::manvolnum[]
99