mirror of
https://github.com/YunoHost-Apps/ttrss_ynh.git
synced 2024-10-01 13:34:46 +02:00
db32b207b8
* 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>
30 lines
No EOL
1.9 KiB
Text
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 |