summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2024-10-20 10:20:08 +0200
committerGravatar default2024-10-20 10:20:08 +0200
commit14fe8fac60970910fc41e2ea464a62cb8e7cf435 (patch)
tree1fd653cc97e23137342c2f5cc2c2885bf25b3c63
parentIn tag_index(), don't repeat tags in indexes. (diff)
downloadsnac2-14fe8fac60970910fc41e2ea464a62cb8e7cf435.tar.gz
snac2-14fe8fac60970910fc41e2ea464a62cb8e7cf435.tar.xz
snac2-14fe8fac60970910fc41e2ea464a62cb8e7cf435.zip
Updated documentation.
-rw-r--r--doc/snac.881
-rw-r--r--doc/tp/tp-01-account-migration-from-snac-to-mastodon.md2
-rw-r--r--doc/tp/tp-02-account-migration-from-mastodon-to-snac.md2
3 files changed, 65 insertions, 20 deletions
diff --git a/doc/snac.8 b/doc/snac.8
index 46c6981..eeb6388 100644
--- a/doc/snac.8
+++ b/doc/snac.8
@@ -461,33 +461,78 @@ Also, please take note that the
461.Nm 461.Nm
462account you migrated from is not disabled nor changed in any way, so can still 462account you migrated from is not disabled nor changed in any way, so can still
463use it as it no migration was done. This behaviour may or may not match what other 463use it as it no migration was done. This behaviour may or may not match what other
464ActivityPub do. 464ActivityPub implementations do.
465.Ss Migrating from Mastodon to snac 465.Ss Migrating from Mastodon to snac
466User migration from different Fediverse instances is a pain in the ass 466Since version 2.61, you can migrate accounts on other ActivityPub instances to your
467that has been implemented everywhere as a kludgy afterthought. There is
468not much that can be done, other than importing the list of people you
469follow to your new
470.Nm 467.Nm
471account. 468one. What is described here is the process to do it from
469Mastodon; on other software implementations, it will surely be somewhat different. All
470the steps regarding your
471.Nm
472account must be done from the command line. For the sake of the example, let's
473say that you want to migrate from an account named @origin@mastodon.example.com to
474another one named @destination@snac.example.org and that both of them
475already 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
4801. On the web interface of your origin Mastodon account, click on
481.Vt Preferences
482>
483.Vt Import and Export
484>
485.Vt Export
486and download the CSV files under the "Follows", "Lists", "You Block" and "Bookmarks"
487labels. After being downloaded, you should find the following files on your download
488directory:
489.Pa bookmarks.csv ,
490.Pa blocked_accounts.csv ,
491.Pa lists.csv , and
492.Pa following_accounts.csv .
493.Pp
4942. From the directory where those files are stored, run
495.Bd -literal -offset indent
496snac import_csv $SNAC_BASEDIR destination
497.Ed
472.Pp 498.Pp
473To do this, download the user's list of accounts being followed (in CSV 499This process may take some time because it depends on the availability / responsiveness
474format) from the Mastodon web interface and execute this: 500of all the ActivityPub servers involved (webfinger, accounts, posts, etc.). Also, if
501.Nm
502complains that it can't find any of these files, please check that they really are
503in 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
5063. Again on your
507.Nm
508server, run
475.Bd -literal -offset indent 509.Bd -literal -offset indent
476awk -F, 'NR > 1 { print $1 }' /path/to/following_accounts.csv | \\ 510snac alias $SNAC_BASEDIR destination "@origin@mastodon.example.com"
477xargs -n 1 snac follow $SNAC_BASEDIR $SNAC_USER
478.Ed 511.Ed
512.Pp
513Check that no errors were shown. If they do, the origin Mastodon server may be
514busy or down. Try again later.
515.Pp
5164. 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 ,
522and follow the instructions there. Set the handle of the new account to your
523.Nm
524one; as of our example, @destination@snac.example.org. This will start the migration
525process: it's the duty of your old Mastodon instance to send an automatic
526.Vt Move
527message to all your followers in their respective instances. According to the great
528document I linked above, this process may or may not start immediately, and its
529success may depend heavily on how all the servers involved behave. Just cross your
530fingers and hope for the best.
531.Pp
479.Ss Instance blocking 532.Ss Instance blocking
480Full instances can be blocked. This operation must be done from 533Full instances can be blocked. This operation must be done from
481the command-line tool. See 534the command-line tool. See
482.Xr snac 1 . 535.Xr snac 1 .
483.Ss Other Considerations
484.Nm
485stores all the messages it receives as JSON files, which are usually
486bloated and filled with redundant information. Using a filesystem with
487file compression enabled (like btrfs or zfs) will probably be a good
488choice to store the
489.Nm
490data 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