Blallo 481d797c72 Init and added backup stuff for mastodon | 5 년 전 | |
---|---|---|
.. | ||
README.md | 5 년 전 | |
dobackup.sh | 5 년 전 | |
pg_backup_daily.service | 5 년 전 | |
pg_backup_daily.timer | 5 년 전 | |
pg_backup_monthly.service | 5 년 전 | |
pg_backup_monthly.timer | 5 년 전 |
(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