Ttrss-data-migration - still works?

Can anyone elaborate on how to use the ttrss-data-migration plugin?

I’m stumped, and the wiki page is dead. Looking at a few other threads, my impression is the plugin wouldn’t work, since the conversion to Docker means php.config is no more.

Is there a newer version of this plugin, or something similar? I’m trying to to back up my starred articles and all so I can move them to a new fresh TTRSS instance. I set up the old one back in 2020, and there’s so many problems with the droplet I have it running on in Digital Ocean that it seems I need to start over, at least from a VM and app perspective.

Digging around, this appears to be more recent (last modification on 2023-09-20,) but not sure if it’s the canonical method now…

https://git.tt-rss.org/fox/ttrss-data-migration.git/tree/README.md

@fox, https://tt-rss.org/wiki/FAQ#i-want-to-migrate-to-a-different-database looks to need some TLC…

https://tt-rss.org/wiki/FAQ#i-want-to-migrate-to-a-different-database fixed

https://git.tt-rss.org/fox/ttrss-data-migration.git/tree/README.md also updated plugin readme a bit

I’ve added the plugin to my instance. When activating the first command to try exporting data, I get an error of “ERROR: The Compose file ‘./…/docker-compose.yml’ is invalid because:
services.web-nginx.ports is invalid: Port ranges don’t match in length”

Checking the docker-compose.yml file, I only see one mention of port 80. I tried changing it to 81, 8080, and 8280, but I keep getting the same error.

try running your commands in the directory where .env & docker-compose.yml are at.

because that’s not what your error is about.

I ran it in the same directory and now I see an error of “ERROR: Setting workdir for exec is not supported in API < 1.35 (1.25)”

Is this an API in TTRSS, Docker, or something else?

i think me figuring out your issues with docker compose goes outside of scope for this forum.

I’ve tried running the export on a fresher install, one I’m more confident on the docker and docker compose setup.

I’m able to run the first command, but it’s bringing up list of options for the Tiny Tiny RSS CLI management tool. Is this how it’s supposed to run? I don’t see an option that appears to perform a full export of articles as described.

if you don’t see the options, you need to enable the plugin properly. read the readme again and maybe the faq.

Like @fox said you get the option list if the plugin is not installed or activated.

I just tried it and got the option list too.

for a docker-compose install you need to declare the plugin in your .env by populating TTRSS_PLUGINS:
ex:

TTRSS_PLUGINS=auth_internal, data_migration, nginx_xaccel

and installing the plugin in Configuration > Plugin.
if everythig is ok the plugin appear in the list as activated

after that i used this command and it work:

sudo docker-compose exec --user app app php82 /var/www/html/tt-rss/update.php --data_user your_user --data_export /var/www/html/ttrss_export.zip