1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ttrss_ynh.git synced 2024-10-01 13:34:46 +02:00
ttrss_ynh/conf/migration
eric_G 0656f3ba5e
Testing (#160)
* Auto-update README

* Upgrade to upstream

* Auto-update README

* Bullseye (#141)

* Fix

* Fix

* Auto-update README

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Upgrade

* Auto-update README

* Auto-update README

* Upgrade to upstream

* Auto-update README

* PHP

* Auto-update README

* Update manifest.json

* Auto-update README

* Update config

* Fix

* Auto-update README

* update

* Auto-update README

* Version 2 (#148)

* v2

* v2

* Auto-update README

* Fix

* Auto-update README

* fix

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Update tests.toml

* Delete check_process

* Update restore

* Update remove

* Update install

* Update upgrade

* Fix

* Update upgrade

* Update manifest.toml

* Update manifest.toml

* data_migration

* fix

* Fix

* Update manifest.toml

* Auto-update README

* Update manifest.toml

* Update manifest.toml

* Auto-update README

* Update tests.toml

* auto updater

* Update manifest.toml

* Auto-update README

* remove data migration

* update git repo

* Auto-update README

* Update manifest.toml

* Update manifest.toml

* Auto-update README

* update to upstream

* Auto-update README

* fix

* Auto-update README

* Update manifest.toml

* Update manifest.toml

* Auto-update README

* Update manifest.toml

* Auto-update README

* PostgreSQL (#150)

* switch to PHP

* Update install

* Update _common.sh

* Update _common.sh

* Update app.src

* Update manifest.json

* Auto-update README

* Fix

* Update remove

* Update _common.sh

* Update app.src

* Fix

* Remove cron

* Update install

* Update change_url

* Update systemd.service

* Update install

* Update DESCRIPTION.md

* Auto-update README

* Fix

* Update manifest.json

* Update restore

* Update app.src

* Create migration

* v2

* v2

* Auto-update README

* Fix

* Auto-update README

* fix

* fix

* fix

* Update restore

* data_migration

* Revert "data_migration"

This reverts commit 1aea23fb52.

* fix

* fix

* Update manifest.toml

* Update manifest.toml

* Update manifest.toml

* Auto-update README

* fix

* Update manifest.toml

* Update manifest.toml

* Auto-update README

* Create PRE_UPGRADE_fr.md

* fix

* Auto-update README

* Auto-update README

* Update manifest.toml

* Auto-update README

---------

Co-authored-by: Yunohost-Bot <>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
2023-12-05 20:36:42 +01:00

30 lines
No EOL
1.9 KiB
Text

# OPML import/export (including filters and some settings). Must be done before data_migration plugin if you want to keep feed categories
# on the original machine
sudo mkdir /var/www/tt-rss/export
sudo chown -R www-data:www-data /var/www/tt-rss/export/
sudo -u www-data php /var/www/tt-rss/update.php --opml-export "MYUSERNAME /var/www/tt-rss/export/export-2020-08-07.opml" # export feeds OPML
# on a client
rsync -avP my.original.machine.org:/var/www/tt-rss/export/export-2020-08-07.opml ./ # download opml export
# login to the new tt-rss instance from a browser, go to Preferences > Feeds, import OPML file
# migrate all articles from mysql to postgresql
# on the original machine
git clone https://git.tt-rss.org/fox/ttrss-data-migration
sudo chown -R root:www-data ttrss-data-migration/
sudo mv ttrss-data-migration/ /var/www/tt-rss/plugins.local/data_migration
sudo nano /var/www/tt-rss/config.php # enable data_migration in the PLUGINS array
sudo -u www-data php /var/www/tt-rss/update.php --data_user MYUSERNAME --data_export /var/www/tt-rss/export/export-2020-08-07.zip # export articles to database-agnostic format
# on the target machine
git clone https://git.tt-rss.org/fox/ttrss-data-migration
sudo chown -R root:www-data ttrss-data-migration/
sudo mv ttrss-data-migration/ /var/www/rss.example.org/plugins.local/data_migration
sudo nano /var/www/rss.example.org/config.php # enable data_migration in the PLUGINS array
rsync -avP my.original.machine.org:/var/www/tt-rss/export/export-2020-08-07.zip ./
sudo mkdir /var/www/rss.example.org/export
sudo mv export-2020-08-07.zip /var/www/rss.example.org/export
sudo chown -R root:www-data /var/www/rss.example.org/export
sudo chmod -R g+rX /var/www/rss.example.org/export/
sudo -u www-data php /var/www/rss.example.org/update.php --data_user MYUSERNAME --data_import /var/www/rss.example.org/export/export-2020-08-07.zip # it can take a while
sudo rm -r /var/www/rss.example.org/export/ # cleanup