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

Automatic backup solution #19

Open
zorbathut opened this issue Jun 30, 2020 · 1 comment
Open

Automatic backup solution #19

zorbathut opened this issue Jun 30, 2020 · 1 comment

Comments

@zorbathut
Copy link
Contributor

No description provided.

@Deimos
Copy link
Contributor

Deimos commented Jun 30, 2020

There's a script included that dumps the entire database to a file, compresses it, encrypts it with GPG, and then uploads to an FTP: https://github.com/themotte/tildes/blob/master/tildes/scripts/backup_database.py

It keeps backups locally for 7 days, and remotely on the FTP for 30 days and will delete any older than that in both places.

Make sure you read the requirements at the top, because it will probably just crash with some random error if those aren't set up.

The way to run it in my crontab just looks like: cd ~/backup && /opt/venvs/tildes/bin/python /opt/tildes/scripts/backup_database.py --host <ftp hostname> --gpg-recipient <gpg recipient email address>

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

No branches or pull requests

2 participants