diff options
| author | 2024-10-20 10:20:08 +0200 | |
|---|---|---|
| committer | 2024-10-20 10:20:08 +0200 | |
| commit | 14fe8fac60970910fc41e2ea464a62cb8e7cf435 (patch) | |
| tree | 1fd653cc97e23137342c2f5cc2c2885bf25b3c63 | |
| parent | In tag_index(), don't repeat tags in indexes. (diff) | |
| download | penes-snac2-14fe8fac60970910fc41e2ea464a62cb8e7cf435.tar.gz penes-snac2-14fe8fac60970910fc41e2ea464a62cb8e7cf435.tar.xz penes-snac2-14fe8fac60970910fc41e2ea464a62cb8e7cf435.zip | |
Updated documentation.
| -rw-r--r-- | doc/snac.8 | 81 | ||||
| -rw-r--r-- | doc/tp/tp-01-account-migration-from-snac-to-mastodon.md | 2 | ||||
| -rw-r--r-- | doc/tp/tp-02-account-migration-from-mastodon-to-snac.md | 2 |
3 files changed, 65 insertions, 20 deletions
| @@ -461,33 +461,78 @@ Also, please take note that the | |||
| 461 | .Nm | 461 | .Nm |
| 462 | account you migrated from is not disabled nor changed in any way, so can still | 462 | account you migrated from is not disabled nor changed in any way, so can still |
| 463 | use it as it no migration was done. This behaviour may or may not match what other | 463 | use it as it no migration was done. This behaviour may or may not match what other |
| 464 | ActivityPub do. | 464 | ActivityPub implementations do. |
| 465 | .Ss Migrating from Mastodon to snac | 465 | .Ss Migrating from Mastodon to snac |
| 466 | User migration from different Fediverse instances is a pain in the ass | 466 | Since version 2.61, you can migrate accounts on other ActivityPub instances to your |
| 467 | that has been implemented everywhere as a kludgy afterthought. There is | ||
| 468 | not much that can be done, other than importing the list of people you | ||
| 469 | follow to your new | ||
| 470 | .Nm | 467 | .Nm |
| 471 | account. | 468 | one. What is described here is the process to do it from |
| 469 | Mastodon; on other software implementations, it will surely be somewhat different. All | ||
| 470 | the steps regarding your | ||
| 471 | .Nm | ||
| 472 | account must be done from the command line. For the sake of the example, let's | ||
| 473 | say that you want to migrate from an account named @origin@mastodon.example.com to | ||
| 474 | another one named @destination@snac.example.org and that both of them | ||
| 475 | already exist. I've used this very informative page as a guideline: | ||
| 476 | .Pp | ||
| 477 | .Lk https://fedi.tips/transferring-your-mastodon-account-to-another-server/ | ||
| 478 | .Pp | ||
| 479 | |||
| 480 | 1. On the web interface of your origin Mastodon account, click on | ||
| 481 | .Vt Preferences | ||
| 482 | > | ||
| 483 | .Vt Import and Export | ||
| 484 | > | ||
| 485 | .Vt Export | ||
| 486 | and download the CSV files under the "Follows", "Lists", "You Block" and "Bookmarks" | ||
| 487 | labels. After being downloaded, you should find the following files on your download | ||
| 488 | directory: | ||
| 489 | .Pa bookmarks.csv , | ||
| 490 | .Pa blocked_accounts.csv , | ||
| 491 | .Pa lists.csv , and | ||
| 492 | .Pa following_accounts.csv . | ||
| 493 | .Pp | ||
| 494 | 2. From the directory where those files are stored, run | ||
| 495 | .Bd -literal -offset indent | ||
| 496 | snac import_csv $SNAC_BASEDIR destination | ||
| 497 | .Ed | ||
| 472 | .Pp | 498 | .Pp |
| 473 | To do this, download the user's list of accounts being followed (in CSV | 499 | This process may take some time because it depends on the availability / responsiveness |
| 474 | format) from the Mastodon web interface and execute this: | 500 | of all the ActivityPub servers involved (webfinger, accounts, posts, etc.). Also, if |
| 501 | .Nm | ||
| 502 | complains that it can't find any of these files, please check that they really are | ||
| 503 | in the current directory and that their names match exactly. Some of them may be empty | ||
| 504 | (for example, if you didn't create any list) and that's fine. | ||
| 505 | .Pp | ||
| 506 | 3. Again on your | ||
| 507 | .Nm | ||
| 508 | server, run | ||
| 475 | .Bd -literal -offset indent | 509 | .Bd -literal -offset indent |
| 476 | awk -F, 'NR > 1 { print $1 }' /path/to/following_accounts.csv | \\ | 510 | snac alias $SNAC_BASEDIR destination "@origin@mastodon.example.com" |
| 477 | xargs -n 1 snac follow $SNAC_BASEDIR $SNAC_USER | ||
| 478 | .Ed | 511 | .Ed |
| 512 | .Pp | ||
| 513 | Check that no errors were shown. If they do, the origin Mastodon server may be | ||
| 514 | busy or down. Try again later. | ||
| 515 | .Pp | ||
| 516 | 4. Move back to the web interface of the origin Mastodon account, go to | ||
| 517 | .Vt Preferences | ||
| 518 | > | ||
| 519 | .Vt Account | ||
| 520 | > | ||
| 521 | .Vt Move To A Different Account , | ||
| 522 | and follow the instructions there. Set the handle of the new account to your | ||
| 523 | .Nm | ||
| 524 | one; as of our example, @destination@snac.example.org. This will start the migration | ||
| 525 | process: it's the duty of your old Mastodon instance to send an automatic | ||
| 526 | .Vt Move | ||
| 527 | message to all your followers in their respective instances. According to the great | ||
| 528 | document I linked above, this process may or may not start immediately, and its | ||
| 529 | success may depend heavily on how all the servers involved behave. Just cross your | ||
| 530 | fingers and hope for the best. | ||
| 531 | .Pp | ||
| 479 | .Ss Instance blocking | 532 | .Ss Instance blocking |
| 480 | Full instances can be blocked. This operation must be done from | 533 | Full instances can be blocked. This operation must be done from |
| 481 | the command-line tool. See | 534 | the command-line tool. See |
| 482 | .Xr snac 1 . | 535 | .Xr snac 1 . |
| 483 | .Ss Other Considerations | ||
| 484 | .Nm | ||
| 485 | stores all the messages it receives as JSON files, which are usually | ||
| 486 | bloated and filled with redundant information. Using a filesystem with | ||
| 487 | file compression enabled (like btrfs or zfs) will probably be a good | ||
| 488 | choice to store the | ||
| 489 | .Nm | ||
| 490 | data storage into. | ||
| 491 | .Sh ENVIRONMENT | 536 | .Sh ENVIRONMENT |
| 492 | .Bl -tag -width Ds | 537 | .Bl -tag -width Ds |
| 493 | .It Ev DEBUG | 538 | .It Ev DEBUG |
diff --git a/doc/tp/tp-01-account-migration-from-snac-to-mastodon.md b/doc/tp/tp-01-account-migration-from-snac-to-mastodon.md index b074d11..d4c084e 100644 --- a/doc/tp/tp-01-account-migration-from-snac-to-mastodon.md +++ b/doc/tp/tp-01-account-migration-from-snac-to-mastodon.md | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | - A snac account in your server (from now, the *origin* account). | 5 | - A snac account in your server (from now, the *origin* account). |
| 6 | - A Mastodon account, already created on any public server (from now, the *destination* account). | 6 | - A Mastodon account, already created on any public server (from now, the *destination* account). |
| 7 | - 3 other Fediverse accounts, already created on public servers (from now, the *followers* accounts). These accounts must be from Mastodon instances (or, optionally, from other implementations where the `Move` activity is known to be supported). | 7 | - 3 other Fediverse accounts, already created on public servers (from now, the *follower* accounts). These accounts must be from Mastodon instances (or, optionally, from other implementations where the `Move` activity is known to be supported). |
| 8 | 8 | ||
| 9 | ## Steps | 9 | ## Steps |
| 10 | 10 | ||
diff --git a/doc/tp/tp-02-account-migration-from-mastodon-to-snac.md b/doc/tp/tp-02-account-migration-from-mastodon-to-snac.md index 8f8ba17..8f2b11f 100644 --- a/doc/tp/tp-02-account-migration-from-mastodon-to-snac.md +++ b/doc/tp/tp-02-account-migration-from-mastodon-to-snac.md | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | - A Mastodon account, already created on any public server (from now, the *origin* account). | 5 | - A Mastodon account, already created on any public server (from now, the *origin* account). |
| 6 | - A snac account in your server (from now, the *destination* account). | 6 | - A snac account in your server (from now, the *destination* account). |
| 7 | - 3 other Fediverse accounts, already created on public servers (from now, the *followers* accounts). These accounts must be from Mastodon instances (or, optionally, from other implementations where the `Move` activity is known to be supported). | 7 | - 3 other Fediverse accounts, already created on public servers (from now, the *follower* accounts). These accounts must be from Mastodon instances (or, optionally, from other implementations where the `Move` activity is known to be supported). |
| 8 | 8 | ||
| 9 | ## Steps | 9 | ## Steps |
| 10 | 10 | ||