Mastodon#
TODO
Services#
Vedi anche
Adventures in Mastodon Self-Hosting: Clean Media Storage with tootctl | Matt Burke [1]
create a Systemd unit file
[Unit] Requires=docker-compose.mastodon.service Requires=network-online.target After=docker-compose.mastodon.service After=network-online.target [Service] Type=simple WorkingDirectory=/home/jobs/scripts/by-user/root/docker/mastodon Restart=no ExecStart=/usr/bin/bash -c '/usr/bin/docker-compose run --rm web tootctl media remove --days 7 && /usr/bin/docker-compose run --rm web tootctl media remove --days 7 --prune-profiles'
create a Systemd timer unit file
[Unit] Description=Once every week cleanup Mastodon [Timer] OnCalendar=weekly Persistent=true [Install] WantedBy=timers.target
Footnotes