Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

382 lines
14 KiB

  1. # SOME DESCRIPTIVE TITLE.
  2. # Copyright (C) 2018-2024, Slavi Pantaleev, Aine Etke, MDAD community
  3. # members
  4. # This file is distributed under the same license as the
  5. # matrix-docker-ansible-deploy package.
  6. # FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
  7. #
  8. #, fuzzy
  9. msgid ""
  10. msgstr ""
  11. "Project-Id-Version: matrix-docker-ansible-deploy \n"
  12. "Report-Msgid-Bugs-To: \n"
  13. "POT-Creation-Date: 2024-12-16 12:05+0900\n"
  14. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  15. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  16. "Language: jp\n"
  17. "Language-Team: jp <LL@li.org>\n"
  18. "MIME-Version: 1.0\n"
  19. "Content-Type: text/plain; charset=utf-8\n"
  20. "Content-Transfer-Encoding: 8bit\n"
  21. "Generated-By: Babel 2.16.0\n"
  22. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:1
  23. msgid ""
  24. "Storing Synapse media files on Amazon S3 with synapse-s3-storage-provider"
  25. " (optional)"
  26. msgstr ""
  27. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:3
  28. msgid ""
  29. "If you'd like to store Synapse's content repository (`media_store`) files"
  30. " on Amazon S3 (or other S3-compatible service), you can use the "
  31. "[synapse-s3-storage-provider](https://github.com/matrix-org/synapse-s3"
  32. "-storage-provider) media provider module for Synapse."
  33. msgstr ""
  34. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:5
  35. msgid ""
  36. "An alternative (which has worse performance) is to use [Goofys to mount "
  37. "the S3 store to the local filesystem](configuring-playbook-s3-goofys.md)."
  38. msgstr ""
  39. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:7
  40. msgid "How it works?"
  41. msgstr ""
  42. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:9
  43. msgid ""
  44. "Summarized writings here are inspired by [this "
  45. "article](https://quentin.dufour.io/blog/2021-09-14/matrix-"
  46. "synapse-s3-storage/)."
  47. msgstr ""
  48. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:11
  49. msgid "The way media storage providers in Synapse work has some caveats:"
  50. msgstr ""
  51. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:13
  52. msgid ""
  53. "Synapse still continues to use locally-stored files (for creating "
  54. "thumbnails, serving files, etc)"
  55. msgstr ""
  56. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:14
  57. msgid ""
  58. "the media storage provider is just an extra storage mechanism (in "
  59. "addition to the local filesystem)"
  60. msgstr ""
  61. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:15
  62. msgid ""
  63. "all files are stored locally at first, and then copied to the media "
  64. "storage provider (either synchronously or asynchronously)"
  65. msgstr ""
  66. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:16
  67. msgid ""
  68. "if a file is not available on the local filesystem, it's pulled from a "
  69. "media storage provider"
  70. msgstr ""
  71. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:18
  72. msgid ""
  73. "You may be thinking **if all files are stored locally as well, what's the"
  74. " point**?"
  75. msgstr ""
  76. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:20
  77. msgid ""
  78. "You can run some scripts to delete the local files once in a while (which"
  79. " we do automatically by default - see [Periodically cleaning up the local"
  80. " filesystem](#periodically-cleaning-up-the-local-filesystem)), thus "
  81. "freeing up local disk space. If these files are needed in the future (for"
  82. " serving them to users, etc.), Synapse will pull them from the media "
  83. "storage provider on demand."
  84. msgstr ""
  85. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:22
  86. msgid ""
  87. "While you will need some local disk space around, it's only to "
  88. "accommodate usage, etc., and won't grow as large as your S3 store."
  89. msgstr ""
  90. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:24
  91. msgid "Installing"
  92. msgstr ""
  93. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:26
  94. msgid ""
  95. "After [creating the S3 bucket and configuring it](configuring-"
  96. "playbook-s3.md#bucket-creation-and-security-configuration), you can "
  97. "proceed to configure `s3-storage-provider` in your configuration file "
  98. "(`inventory/host_vars/matrix.example.com/vars.yml`):"
  99. msgstr ""
  100. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:50
  101. msgid ""
  102. "If you have existing files in Synapse's media repository "
  103. "(`/matrix/synapse/media-store/..`):"
  104. msgstr ""
  105. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:52
  106. msgid "new files will start being stored both locally and on the S3 store"
  107. msgstr ""
  108. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:53
  109. msgid ""
  110. "the existing files will remain on the local filesystem only until "
  111. "[migrating them to the S3 store](#migrating-your-existing-media-files-to-"
  112. "the-s3-store)"
  113. msgstr ""
  114. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:54
  115. msgid ""
  116. "at some point (and periodically in the future), you can delete local "
  117. "files which have been uploaded to the S3 store already"
  118. msgstr ""
  119. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:56
  120. msgid ""
  121. "Regardless of whether you need to [Migrate your existing files to the S3 "
  122. "store](#migrating-your-existing-media-files-to-the-s3-store) or not, make"
  123. " sure you've familiarized yourself with [How it works?](#how-it-works) "
  124. "above and [Periodically cleaning up the local filesystem](#periodically-"
  125. "cleaning-up-the-local-filesystem) below."
  126. msgstr ""
  127. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:58
  128. msgid "Migrating your existing media files to the S3 store"
  129. msgstr ""
  130. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:60
  131. msgid "Migrating your existing data can happen in multiple ways:"
  132. msgstr ""
  133. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:62
  134. msgid ""
  135. "[using the `s3_media_upload` script from `synapse-s3-storage-provider"
  136. "`](#using-the-s3_media_upload-script-from-synapse-s3-storage-provider) "
  137. "(very slow when dealing with lots of data)"
  138. msgstr ""
  139. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:63
  140. msgid ""
  141. "[using another tool in combination with `s3_media_upload`](#using-"
  142. "another-tool-in-combination-with-s3_media_upload) (quicker when dealing "
  143. "with lots of data)"
  144. msgstr ""
  145. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:65
  146. msgid "Using the `s3_media_upload` script from `synapse-s3-storage-provider`"
  147. msgstr ""
  148. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:67
  149. msgid ""
  150. "Instead of using `s3_media_upload` directly, which is very slow and "
  151. "painful for an initial data migration, we recommend [using another tool "
  152. "in combination with `s3_media_upload`](#using-another-tool-in-"
  153. "combination-with-s3_media_upload)."
  154. msgstr ""
  155. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:69
  156. msgid ""
  157. "To copy your existing files, SSH into the server and run "
  158. "`/matrix/synapse/ext/s3-storage-provider/bin/shell`."
  159. msgstr ""
  160. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:71
  161. msgid ""
  162. "This launches a Synapse container, which has access to the local media "
  163. "store, Postgres database, S3 store and has some convenient environment "
  164. "variables configured for you to use (`MEDIA_PATH`, `BUCKET`, `ENDPOINT`, "
  165. "`UPDATE_DB_DAYS`, etc)."
  166. msgstr ""
  167. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:73
  168. msgid ""
  169. "Then use the following commands (`$` values come from environment "
  170. "variables - they're **not placeholders** that you need to substitute):"
  171. msgstr ""
  172. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:75
  173. msgid ""
  174. "`s3_media_upload update-db $UPDATE_DB_DURATION` - create a local SQLite "
  175. "database (`cache.db`) with a list of media repository files (from the "
  176. "`synapse` Postgres database) eligible for operating on"
  177. msgstr ""
  178. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:76
  179. msgid ""
  180. "`$UPDATE_DB_DURATION` is influenced by the "
  181. "`matrix_synapse_ext_synapse_s3_storage_provider_update_db_day_count` "
  182. "variable (defaults to `0`)"
  183. msgstr ""
  184. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:77
  185. msgid ""
  186. "`$UPDATE_DB_DURATION` defaults to `0d` (0 days), which means **include "
  187. "files which haven't been accessed for more than 0 days** (that is, **all "
  188. "files will be included**)."
  189. msgstr ""
  190. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:78
  191. msgid ""
  192. "`s3_media_upload check-deleted $MEDIA_PATH` - check whether files in the "
  193. "local cache still exist in the local media repository directory"
  194. msgstr ""
  195. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:79
  196. msgid ""
  197. "`s3_media_upload upload $MEDIA_PATH $BUCKET --delete --storage-class "
  198. "$STORAGE_CLASS --endpoint-url $ENDPOINT` - uploads locally-stored files "
  199. "to S3 and deletes them from the local media repository directory"
  200. msgstr ""
  201. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:81
  202. msgid "The `s3_media_upload upload` command may take a lot of time to complete."
  203. msgstr ""
  204. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:83
  205. msgid ""
  206. "Instead of running the above commands manually in the shell, you can also"
  207. " run the `/matrix/synapse/ext/s3-storage-provider/bin/migrate` script "
  208. "which will run the same commands automatically. We demonstrate how to do "
  209. "it manually, because:"
  210. msgstr ""
  211. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:85
  212. msgid ""
  213. "it's what the upstream project demonstrates and it teaches you how to use"
  214. " the `s3_media_upload` tool"
  215. msgstr ""
  216. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:86
  217. msgid ""
  218. "allows you to check and verify the output of each command, to catch "
  219. "mistakes"
  220. msgstr ""
  221. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:87
  222. msgid "includes progress bars and detailed output for each command"
  223. msgstr ""
  224. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:88
  225. msgid ""
  226. "allows you to easily interrupt slow-running commands, etc. (the "
  227. "`/matrix/synapse/ext/s3-storage-provider/bin/migrate` starts a container "
  228. "without interactive TTY support, so `Ctrl+C` may not work and you and "
  229. "require killing via `docker kill ..`)"
  230. msgstr ""
  231. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:90
  232. msgid "Using another tool in combination with `s3_media_upload`"
  233. msgstr ""
  234. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:92
  235. msgid "To migrate your existing local data to S3, we recommend to:"
  236. msgstr ""
  237. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:94
  238. msgid ""
  239. "**first** use another tool ([`aws s3`](#copying-data-to-amazon-s3) or "
  240. "[`b2 sync`](#copying-data-to-backblaze-b2), etc.) to copy the local files"
  241. " to the S3 bucket"
  242. msgstr ""
  243. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:96
  244. msgid ""
  245. "**only then** [use the `s3_media_upload` tool to finish the migration"
  246. "](#using-the-s3_media_upload-script-from-synapse-s3-storage-provider) "
  247. "(this checks to ensure all files are uploaded and then deletes the local "
  248. "files)"
  249. msgstr ""
  250. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:98
  251. msgid "Copying data to Amazon S3"
  252. msgstr ""
  253. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:100
  254. msgid "To copy to AWS S3, start a container on the Matrix server like this:"
  255. msgstr ""
  256. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:112
  257. msgid "Copying data to an S3 alternative using the aws-s3 tool"
  258. msgstr ""
  259. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:114
  260. msgid ""
  261. "To copy to a provider other than AWS S3 (e.g. Wasabi, Digital Ocean "
  262. "Spaces, etc.), you can use the command for [Copying data to Amazon S3"
  263. "](#copying-data-to-amazon-s3) with an added `--endpoint-url=$ENDPOINT` "
  264. "argument."
  265. msgstr ""
  266. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:116
  267. msgid ""
  268. "Add this argument to the command **as-is** (`$ENDPOINT` is an environment"
  269. " variable corresponding to "
  270. "`matrix_synapse_ext_synapse_s3_storage_provider_config_endpoint_url`, so "
  271. "you don't need to touch it). Make sure to add the argument **before** the"
  272. " final quote (`'`) of the command."
  273. msgstr ""
  274. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:118
  275. msgid "Copying data to Backblaze B2"
  276. msgstr ""
  277. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:120
  278. msgid ""
  279. "You can copy files to Backblaze B2 either by following the [Copying data "
  280. "to an S3 alternative using the aws-s3 tool](#copying-data-to-an-s3"
  281. "-alternative-using-the-aws-s3-tool) or by using the B2-specific [b2 "
  282. "command-line "
  283. "tool](https://www.backblaze.com/b2/docs/quick_command_line.html) as "
  284. "described below."
  285. msgstr ""
  286. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:122
  287. msgid ""
  288. "To copy the data using the `b2` tool, start a container on the Matrix "
  289. "server like this:"
  290. msgstr ""
  291. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:136
  292. msgid "Periodically cleaning up the local filesystem"
  293. msgstr ""
  294. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:138
  295. msgid ""
  296. "As described in [How it works?](#how-it-works) above, when new media is "
  297. "uploaded to the Synapse homeserver, it's first stored locally and then "
  298. "also stored on the remote S3 storage."
  299. msgstr ""
  300. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:140
  301. msgid ""
  302. "By default, we periodically ensure that all local files are uploaded to "
  303. "S3 and are then removed from the local filesystem. This is done "
  304. "automatically using:"
  305. msgstr ""
  306. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:142
  307. msgid "the `/matrix/synapse/ext/s3-storage-provider/bin/migrate` script"
  308. msgstr ""
  309. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:143
  310. msgid ""
  311. ".. invoked via the `matrix-synapse-s3-storage-provider-migrate.service` "
  312. "service"
  313. msgstr ""
  314. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:144
  315. msgid ""
  316. ".. triggered by the `matrix-synapse-s3-storage-provider-migrate.timer` "
  317. "timer, every day at 05:00"
  318. msgstr ""
  319. #: ../../../docs/configuring-playbook-synapse-s3-storage-provider.md:146
  320. msgid "So.. you don't need to perform any maintenance yourself."
  321. msgstr ""