Una pila di utilità
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blallo d266369a98
Enable and START the timers
4 years ago
..
README.md Enable and START the timers 4 years ago
dobackup.sh Init and added backup stuff for mastodon 4 years ago
pg_backup_daily.service Init and added backup stuff for mastodon 4 years ago
pg_backup_daily.timer Init and added backup stuff for mastodon 4 years ago
pg_backup_monthly.service Init and added backup stuff for mastodon 4 years ago
pg_backup_monthly.timer Init and added backup stuff for mastodon 4 years ago

README.md

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
$ systemctl start pg_backup_*.timer