Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

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