[GH-ISSUE #638] Backup Facility #596

Closed
opened 2026-02-27 11:12:34 +03:00 by kerem · 9 comments
Owner

Originally created by @SomeGeek on GitHub (Nov 23, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/638

Modo should have a backup facility for both administrators and users.

This backup can contain:

  • User Mailboxes
  • User Configurations
  • Applied Filters

And anything else I might have not yet thought of.

Furthermore a scheduled backup and remote backup location would be very welcome. (SFTP/FTPS/Rsync)

Originally created by @SomeGeek on GitHub (Nov 23, 2014). Original GitHub issue: https://github.com/modoboa/modoboa/issues/638 Modo should have a backup facility for both administrators and users. This backup can contain: - User Mailboxes - User Configurations - Applied Filters And anything else I might have not yet thought of. Furthermore a scheduled backup and remote backup location would be very welcome. (SFTP/FTPS/Rsync)
kerem 2026-02-27 11:12:34 +03:00
Author
Owner

@almereyda commented on GitHub (Nov 23, 2016):

In general I see two kinds of backup here:

  • full server backups, able to restore a whole service [probably from -installer CLI]
  • individual backups of configuration, user data (dovecot, radicale, sieve, ...), [probably from within the WebUI]
<!-- gh-comment-id:262419893 --> @almereyda commented on GitHub (Nov 23, 2016): In general I see two kinds of backup here: * full server backups, able to restore a whole service [probably from `-installer` CLI] * individual backups of configuration, user data (dovecot, radicale, sieve, ...), [probably from within the WebUI]
Author
Owner

@hadifarnoud commented on GitHub (Oct 25, 2018):

@almereyda I think in my case full server backup is very urgent. individual backups can be very useful but not so important for me

<!-- gh-comment-id:433237380 --> @hadifarnoud commented on GitHub (Oct 25, 2018): @almereyda I think in my case full server backup is very urgent. individual backups can be very useful but not so important for me
Author
Owner

@jaesivsm commented on GitHub (Nov 7, 2018):

I have an ansible script that'll backup databases and user mail : https://galaxy.ansible.com/jaesivsm/modoboa-ansible-backup/
Needs improvement though since I tested restoring backup and :

  • there's no command to push a backup
  • I had to meddle with SQL since SQL dump are full database dump and not "data only"
    In the end I think I should be included in the installer
<!-- gh-comment-id:436625469 --> @jaesivsm commented on GitHub (Nov 7, 2018): I have an ansible script that'll backup databases and user mail : https://galaxy.ansible.com/jaesivsm/modoboa-ansible-backup/ Needs improvement though since I tested restoring backup and : * there's no command to push a backup * I had to meddle with SQL since SQL dump are full database dump and not "data only" In the end I think I should be included in the installer
Author
Owner

@hadifarnoud commented on GitHub (Nov 9, 2018):

that's a great start @jaesivsm. I still think Modoboa should have that option but sounds like this Ansible script will be quicker way of getting it done

<!-- gh-comment-id:437455630 --> @hadifarnoud commented on GitHub (Nov 9, 2018): that's a great start @jaesivsm. I still think Modoboa should have that option but sounds like this Ansible script will be quicker way of getting it done
Author
Owner

@hadifarnoud commented on GitHub (Jan 26, 2019):

@jaesivsm can you please provide an example? I did install ansible, then get the role from ansible-galaxy

afterwards, created this yml

- hosts: all
  roles:
    - jaesivsm.modoboa-ansible-backup

I get this error when running it via ansible-playbook modoboa-backup.yml

 [WARNING]: provided hosts list is empty, only localhost is available

ERROR! no action detected in task

The error appears to have been in '/etc/ansible/roles/jaesivsm.modoboa-ansible-backup/tasks/main.yml': line 25, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- archive:
  ^ here
<!-- gh-comment-id:457843024 --> @hadifarnoud commented on GitHub (Jan 26, 2019): @jaesivsm can you please provide an example? I did install ansible, then get the role from ansible-galaxy afterwards, created this yml ``` - hosts: all roles: - jaesivsm.modoboa-ansible-backup ``` I get this error when running it via `ansible-playbook modoboa-backup.yml` ``` [WARNING]: provided hosts list is empty, only localhost is available ERROR! no action detected in task The error appears to have been in '/etc/ansible/roles/jaesivsm.modoboa-ansible-backup/tasks/main.yml': line 25, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - archive: ^ here ```
Author
Owner

@hadifarnoud commented on GitHub (Jan 26, 2019):

would be nice to have a restore manual as well :)

<!-- gh-comment-id:457843472 --> @hadifarnoud commented on GitHub (Jan 26, 2019): would be nice to have a restore manual as well :)
Author
Owner

@hadifarnoud commented on GitHub (May 13, 2019):

I think having a proper backup/restore functionality is a core feature. would be best to have it inside Modoboa

<!-- gh-comment-id:491740675 --> @hadifarnoud commented on GitHub (May 13, 2019): I think having a proper backup/restore functionality is a core feature. would be best to have it inside Modoboa
Author
Owner

@avsdev-cw commented on GitHub (Jun 18, 2021):

This would be a very, very good feature to add. The ansible script is nice, but there's so much it excludes.

Another option for me is to have to ability to configure a "data" directory during install which I could dump onto a partition for mirror backups. This would ensure the image could be rebuilt (ie from installer or cold store OS backup) and the data partition re-mounted/re-mirrored and off you go. There's quite a bit of work involved in this though, and a lot of discussion around what is cold store backup and hot store backup, ie. ssl certs, config files, database data, maildir data.

<!-- gh-comment-id:863926753 --> @avsdev-cw commented on GitHub (Jun 18, 2021): This would be a very, very good feature to add. The ansible script is nice, but there's so much it excludes. Another option for me is to have to ability to configure a "data" directory during install which I could dump onto a partition for mirror backups. This would ensure the image could be rebuilt (ie from installer or cold store OS backup) and the data partition re-mounted/re-mirrored and off you go. There's quite a bit of work involved in this though, and a lot of discussion around what is cold store backup and hot store backup, ie. ssl certs, config files, database data, maildir data.
Author
Owner

@calvez commented on GitHub (Nov 2, 2023):

this looks smart:
https://github.com/tachtler/dovecot-backup/blob/master/dovecot_backup.sh

<!-- gh-comment-id:1791639595 --> @calvez commented on GitHub (Nov 2, 2023): this looks smart: `https://github.com/tachtler/dovecot-backup/blob/master/dovecot_backup.sh`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#596
No description provided.