On Migrating from Zap to Streams
#
zap #
streams #
fediverse #
activitypub #
nomad There are a few options.
- Install streams and import/clone your channel or channels from zap. Only do this if you can run both at once.
- install streams on top of your zap site using the existing database and file storage.
- do a db backup of zap, install streams. Copy/move cache and store directories (but not .htconfig.php) to the new install and then db restore.
(The files you might need to preserve from your zap site are .htconfig.php,, the cache directory, and the store directory.)
2 is the fastest, but you'll miss out on a few database optimisations which are included in the streams install. I have a site running this way and it's perfectly fine.
3 is the highest performance, but read on...
For number 3, manually execute updates 1254, 1255 and 1257
after you have done the db-restore in order to upgrade all the imported channels. You can do this by visiting
https://yoursite/admin/dbsync 1254
followed by
https://yoursite/admin/dbsync 1255
etc.
Here's what you'll need for a full migration (you might want to copy/paste or otherwise save this):
Put your webserver to sleep.
----
cd [zapdir]
mysqldump -u [user name] –p [password] --no-create-info [zap-dbname] > /backupdir/dump.sql
cp -rp cache store .htconfig.php /backupdir
cd ..
git clone git@codeberg.org:streams/streams
cd streams
util/add_addon_repo git@codeberg.org:streams/streams-addons addon
composer install --no-dev
mysql -u [user name] -p
create database streams;
use streams;
source install/schema_mysql.sql;
source /backupdir/dump.sql
quit;
cp -rp /backupdir/cache .
cp -rp /backupdir/store .
cp -p /backupdir/.htconfig.php .
Edit .htconfig.php to change the db name to streams
----
Point your webserver at the streams directory and restart it.
Enjoy.