[GH-ISSUE #129] Online database backup #112

Closed
opened 2026-02-27 11:10:09 +03:00 by kerem · 4 comments
Owner

Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/129

Originally assigned to: @tonioo on GitHub.

Originally created by Antoine Nguyen on 2011-01-21T14:38:53Z

From the admin panel, add the possibility to download an SQL dump of the database for backups.

Originally created by @tonioo on GitHub (Dec 4, 2013). Original GitHub issue: https://github.com/modoboa/modoboa/issues/129 Originally assigned to: @tonioo on GitHub. **Originally created by Antoine Nguyen on 2011-01-21T14:38:53Z** From the admin panel, add the possibility to download an SQL dump of the database for backups.
kerem 2026-02-27 11:10:09 +03:00
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Antoine Nguyen on 2011-09-21T10:04:02Z

+Question+: which format must be used to create backup files?

  • It could be raw SQL : the big problem is that it breaks compatibility with other database backends (think about a migration from sqlite to postgresql)
  • It could be one of the format supported by Django's serialization framework : it doesn't break compatibility and it is possible to use the "import" functions present in Django.

+Other question+: must a backup depend on the version used to generate it? (I mean Modoboa's version)

Could it be possible to import a backup created from version XX to a new database using version YY and then apply eventual migrations?

What is your opinion about that Pedro?

<!-- gh-comment-id:29813709 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Antoine Nguyen on 2011-09-21T10:04:02Z** +Question+: which format must be used to create backup files? - It could be raw SQL : the big problem is that it breaks compatibility with other database backends (think about a migration from sqlite to postgresql) - It could be one of the format supported by Django's serialization framework : it doesn't break compatibility and it is possible to use the "import" functions present in Django. +Other question+: must a backup depend on the version used to generate it? (I mean Modoboa's version) Could it be possible to import a backup created from version XX to a new database using version YY and then apply eventual migrations? What is your opinion about that Pedro?
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Antoine Nguyen on 2011-09-30T12:33:26Z

Finally, I will not implement this feature in the 0.8.7. Main reasons are:

  • I currently have no idea about how to present this function in the interface (where, in which menu, etc.)
  • Users who really need this feature can achieve it by using Django's internal commands:
    $ ./manage.py dumpdata
    $ ./manage.py loaddata
    

The real problem (the top-level one) is that, currently, the admin interface is not designed for such functionalities. I think it could be interesting to think about a new layout (again :p)

<!-- gh-comment-id:29813711 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Antoine Nguyen on 2011-09-30T12:33:26Z** Finally, I will not implement this feature in the 0.8.7. Main reasons are: - I currently have no idea about how to present this function in the interface (where, in which menu, etc.) - Users who really need this feature can achieve it by using Django's internal commands: <pre> $ ./manage.py dumpdata $ ./manage.py loaddata </pre> The real problem (the top-level one) is that, currently, the admin interface is not designed for such functionalities. I think it could be interesting to think about a new layout (again :p)
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Antoine Nguyen on 2012-10-21T09:10:52Z

Now that the global layout has been reworked and that Modoboa supports the import of objects, I think this feature is easy to implement.

For a first try, we just need to add the possibility to export domains and identities using CSV files.

<!-- gh-comment-id:29813713 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Antoine Nguyen on 2012-10-21T09:10:52Z** Now that the global layout has been reworked and that Modoboa supports the import of objects, I think this feature is easy to implement. For a first try, we just need to add the possibility to export domains and identities using CSV files.
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Antoine Nguyen on 2013-01-14T21:58:38Z

We must offer the possibility to choose which the CSV delimiter.

<!-- gh-comment-id:29813715 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Antoine Nguyen on 2013-01-14T21:58:38Z** We must offer the possibility to choose which the CSV delimiter.
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#112
No description provided.