]> git.mxchange.org Git - friendica.git/blob - doc/Migrate.md
modified: doc/Migrate.md
[friendica.git] / doc / Migrate.md
1 Migrating to a new server
2 ===============
3
4 * [Home](help)
5
6 ## Preparation
7
8 ### Head up to users
9
10 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.
11
12 You may find these addons useful for in communicating with your users prior to the migration process:
13
14 * blackout
15 * notifyall
16
17
18 ### Storage
19 Check your storage backend with ``bin/console storage list`` in the root folder.
20
21 If you are not currently using ``Database`` run the following commands:
22 1. ``bin/console storage set Database`` to active the database backend.
23 2. ``bin/console storage move`` to initiate moving the stored image files.
24
25 This process may take a long time depending on the size of your storage. 
26
27 ### Cleaning up
28
29 [Removing expired items]
30
31
32 To review the size of your database, log into MySQL with ``mysql -p`` run the following query: 
33
34 ``SELECT table_schema AS "Database", SUM(data_length + index_length) / 1024 / 1024 / 1024 AS "Size (GB)" FROM information_schema.TABLES GROUP BY table_schema;``
35
36 You should see an out like this:
37
38 ````
39 +--------------------+----------------+
40 | Database           | Size (GB)      |
41 +--------------------+----------------+
42 | friendica          | 8.054092407227 |
43 | [..........]       | [...........]  |
44 +--------------------+----------------+
45 ````
46
47 ### Configuration files
48
49
50 ### Go offline 
51 Take your web server offline. 
52
53 ## Dumping DB
54
55
56 ## Transferring to new installation 
57