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

Create script to back up saved datasets periodically #409

Open
paulthatjazz opened this issue Aug 13, 2024 · 1 comment
Open

Create script to back up saved datasets periodically #409

paulthatjazz opened this issue Aug 13, 2024 · 1 comment
Assignees

Comments

@paulthatjazz
Copy link
Contributor

paulthatjazz commented Aug 13, 2024

Create a script (python) or functionality to scan the application and download all available datasets as well as some information to restore a server from them.

@paulthatjazz
Copy link
Contributor Author

  • Created a script (currently residing in my directory pjc36/backups/backup_lmt.sh

  • run with sh backup_lmt.sh prod

  • this creates a tar archive of the postgresql database (dump file) and a copy of the storage directory of the app.

Currently needs to be ran manually but will consider creating a way to schedule backups. Also creates a script file (restore.sh) which should update restore the lost data. This is unfortunately difficult to test. (works on dev environment)

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

1 participant