[go: up one dir, main page]

Skip to content

Managing uploads

Every command should be ran as the akkoma user from its home directory. For example if you are superuser, you would have to wrap the command in su akkoma -s $SHELL -lc "$COMMAND".

From source note about MIX_ENV

The mix command should be prefixed with the name of the environment your Akkoma server is running in, usually it's MIX_ENV=prod

Migrate uploads from local to remote storage

 ./bin/pleroma_ctl uploads migrate_local <target_uploader> [option ...]
mix pleroma.uploads migrate_local <target_uploader> [option ...]

Options

  • --delete - delete local uploads after migrating them to the target uploader

A list of available uploaders can be seen in Configuration Cheat Sheet

Rewriting old media URLs

After a migration has taken place, old URLs in your database will not have been changed. You will want to run this task to update these URLs.

Use the full URL here. So if you moved from media.example.com/media to media.another.com/data, you'd run with arguments old_url = https://media.example.com/media and new_url = https://media.another.com/data.

 ./bin/pleroma_ctl uploads rewrite_media_domain <old_url> <new_url>
mix pleroma.uploads rewrite_media_domain <old_url> <new_url>

Options

  • --dry-run - Do not action any update and simply print what would happen