friendica/doc/Migrate.md

58 lines
1.5 KiB
Markdown
Raw Normal View History

2020-11-25 17:59:06 +01:00
Migrating to a new server
2020-11-25 15:30:04 +01:00
===============
* [Home](help)
## Preparation
2020-11-25 16:06:12 +01:00
### Head up to users
Inform your users of an upcoming interruption to your service. To ensure no loss of data, your server needs to be offline during some part of the migration processes.
You may find these addons useful for in communicating with your users prior to the migration process:
* blackout
* notifyall
2020-11-25 15:30:04 +01:00
### Storage
Check your storage backend with ``bin/console storage list`` in the root folder.
If you are not currently using ``Database`` run the following commands:
1. ``bin/console storage set Database`` to active the database backend.
2. ``bin/console storage move`` to initiate moving the stored image files.
This process may take a long time depending on the size of your storage.
### Cleaning up
[Removing expired items]
2020-11-25 17:59:06 +01:00
To review the size of your database, log into MySQL with ``mysql -p`` run the following query:
``SELECT table_schema AS "Database", SUM(data_length + index_length) / 1024 / 1024 / 1024 AS "Size (GB)" FROM information_schema.TABLES GROUP BY table_schema;``
You should see an out like this:
````
+--------------------+----------------+
| Database | Size (GB) |
+--------------------+----------------+
| friendica | 8.054092407227 |
| [..........] | [...........] |
+--------------------+----------------+
````
2020-11-25 15:30:04 +01:00
### Configuration files
2020-11-25 16:06:12 +01:00
### Go offline
Take your web server offline.
2020-11-25 15:30:04 +01:00
## Dumping DB
## Transferring to new installation