Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup script for backing up code and db together #35

Closed
recluze opened this issue Sep 5, 2017 · 4 comments
Closed

Backup script for backing up code and db together #35

recluze opened this issue Sep 5, 2017 · 4 comments
Assignees

Comments

@recluze
Copy link
Collaborator

recluze commented Sep 5, 2017

We're on PostgresSQL on prod.

We need a script that will take the whole db's dump and put it in a file (timestamped). Then, it will also get the current code and put that in a zip file along with the db dump (again, timestamped). Then, upload it somewhere off-site where we can only do writes and no deletes.

@soachishti
Copy link
Collaborator

soachishti commented Sep 5, 2017

We can use this Django package for creating backup of media (submission/assignment) and database.

https://django-dbbackup.readthedocs.io/en/stable/installation.html

It supports PostgresSQL.

@recluze
Copy link
Collaborator Author

recluze commented Sep 5, 2017

Looks good. Let's deploy this but ensure we can reproduce from the backup (in a sandbox).

@recluze
Copy link
Collaborator Author

recluze commented Sep 5, 2017

But let's handle #9 first please =]

@soachishti soachishti assigned bilalzaib and soachishti and unassigned bilalzaib Sep 21, 2017
@soachishti
Copy link
Collaborator

@bilalzaib I will work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants