Hello,
does anybody have experience to backup mailcow by from docker host to a Proxmox Backup Server by using the agent “proxmox-backup-client”? Do not confuse my question with a backup of a complete VM running on Proxmox VE.
I moved my mail server from a local hosted VM to a VM in the cloud. By doing so I loose the backup functionality of my local hypervisor. Running a backup with the mailcow backup script backup_and_restore.sh to another host is running fine and also recovery is working. Unfortunately here I am missing the incremental backup feature. The vmail file is too big for full backups.
I could follow the manual and up Borgmatic Backup to get the incremental backup functionality. As I already run a Proxmox Backup Server I would like to go this way by using the proxmox-backup-client running on the docker host running mailcow.
My concept:
Create a temporarily local backup on the docker host running mailcow by the mailcow backup script for everything but vmail to get proper dumps of the databases:
export MAILCOW_BACKUP_LOCATION='/opt/mailcow-backup-local'
/opt/mailcow-dockerized/helper-scripts/backup_and_restore.sh backup crypt redis rspamd postfix mysql --delete-days 3
Backup this local backup, the relevant folders on the docker host and the docker volumes to the Proxmox Backup Server using the Proxmox backup client.
export PBS_PASSWORD='xyz'
export PBS_USER_STRING='mailcow@pbs!mailcow-token'
export PBS_SERVER='pbs.domain.tdl'
export PBS_FINGERPRINT='xyz'
export PBS_DATASTORE='pbs-datastore'
export PBS_NAMESPACE='mailcow'
export PBS_REPOSITORY="${PBS_USER_STRING}@${PBS_SERVER}:${PBS_DATASTORE}"
export PBS_HOSTNAME="$(hostname -s)"
proxmox-backup-client backup \
etc.pxar:/etc \
root.pxar:/root \
home.pxar:/home \
mailcow-backup-local.pxar:/opt/mailcow-backup-local \
mailcow-dockerized.pxar:/opt/mailcow-dockerized \
volumes.pxar:/var/lib/docker/volumes \
--ns ${PBS_NAMESPACE} --skip-lost-and-found
Any thoughts on this?
Due to combining the the the mailcow backup scripts with a backup of all volumes I do have redundant data. But because of missing experience in backing up the volumes only this will be the save side. My main goal is to get incremental backups of vmail.