mike-marcacci / gandhi

The open source, online grant management system.
GNU Affero General Public License v3.0
36 stars 17 forks source link

Snapshot tool #82

Open mike-marcacci opened 9 years ago

mike-marcacci commented 9 years ago

Even before investing time into customizable exports, we need a very basic snapshot tool. It should work as follows:

  1. API endpoint for admins to create a snapshot:
    • export db into /tmp/gandhi-snapshot-{{timestamp}}/db
    • copy files into /tmp/gandhi-snapshot-{{timestamp}}/files
    • compress to ./snapshots/{{timestamp}}.tar.gz
  2. API endpoint for admins to list snapshots
  3. API endpoint for admins to delete snapshots
  4. API endpoint for admins to download snapshots
  5. UI in /admin for doing all of the above