Server-Utils/mastodon/README.md

27 lines
655 B
Markdown
Raw Normal View History

# Utilities to keep mastodon instance clean (and hopefully running)
## Postgres backup
(All the mastodon installation is in `/home/mastodon/live` running as `mastodon`).
Create a `/home/mastodon/.bin` directory and place there the backup script (`dobackup.sh`)
Create also:
- `/home/mastodon/.bu`
- `/home/mastodon/.bu/monthly`
Then place in (assuming we are on a debian-like distro) `/lib/systemd/system` the following:
- `pg_backup_daily.service`
- `pg_backup_daily.timer`
- `pg_backup_monthly.service`
- `pg_backup_monthly.timer`
And start them (as root):
```
$ systemctl enable pg_backup_*.timer
2018-11-19 16:15:42 +01:00
$ systemctl start pg_backup_*.timer
```