User Tools

Site Tools


mastodon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mastodon [2024/12/17 20:04] – created khorvathmastodon [2024/12/17 20:10] (current) khorvath
Line 18: Line 18:
 ''tootctl media remove-orphans'' Remove media not linked to any posts ''tootctl media remove-orphans'' Remove media not linked to any posts
  
 +==== Slow Startup ====
  
 +Docker/Podman instances can be very slow to start up. This seems to be possibly linked to the overlay2 driver and the entrypoint trying to chown contents in the public folder. More investigation needed.
 +
 +==== Backups ====
 +
 +An example of how to backup a containerized instance.
 +
 +''podman exec ${DB_CONTAINER} pg_dumpall -U mastodon | gzip > /temp/mastodon/postgres.sql.gz'' Dump the database to a file
 +
 +''tar -czf /temp/mastodon/accounts.tar.gz ${VOLUME}/pubsys/accounts'' Backup media attachments
 +
 +''tar -czf /temp/mastodon/${CURDATE}.tar.gz /temp/mastodon/*'' Compress everything to a file
mastodon.1734465897.txt.gz · Last modified: by khorvath