{"id":13557184,"url":"https://github.com/xwiki-labs/synapse_scripts","last_synced_at":"2025-04-03T11:31:20.059Z","repository":{"id":152869101,"uuid":"105623957","full_name":"xwiki-labs/synapse_scripts","owner":"xwiki-labs","description":"Tools for maintaining a matrix synapse chat server // SEEKING MAINTAINERS","archived":true,"fork":false,"pushed_at":"2020-04-21T16:38:29.000Z","size":10,"stargazers_count":63,"open_issues_count":8,"forks_count":12,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-11-04T07:35:44.365Z","etag":null,"topics":["maintainers"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xwiki-labs.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-10-03T07:13:41.000Z","updated_at":"2024-03-02T03:22:53.000Z","dependencies_parsed_at":"2024-01-19T18:04:58.317Z","dependency_job_id":null,"html_url":"https://github.com/xwiki-labs/synapse_scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwiki-labs%2Fsynapse_scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwiki-labs%2Fsynapse_scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwiki-labs%2Fsynapse_scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwiki-labs%2Fsynapse_scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xwiki-labs","download_url":"https://codeload.github.com/xwiki-labs/synapse_scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246992967,"owners_count":20865915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["maintainers"],"created_at":"2024-08-01T12:04:12.438Z","updated_at":"2025-04-03T11:31:15.047Z","avatar_url":"https://github.com/xwiki-labs.png","language":"PLpgSQL","readme":"# UNMAINTAINED AND DANGEROUS\nThese script aren't maintained and the synapse team had problems with people who used this, where it broke their server.\nThe synapse team advises against using these scripts.\n\n# Synapse Scripts\n\n## synapse_janitor.sql\nCleans a synapse Postgres database of deleted messages and abandoned rooms.\n\n### Deleted Messages\nIf a message was sent in matrix and is then deleted (or *redacted* in technical parlance) it is not displayed but it is not removed from the server either. This script removes it.\n\n### Abandoned Rooms\nIf a room has been joined by someone on your homeserver but currently nobody on your homeserver is using it, this script will remove all traces of that room. **NOTE**: It will cause the room to disappear from people's \"historical\" section of old rooms.\nThis can improve performance significantly.\n\n### Using this script\nThis script should be run from the command line while synapse server is stopped.\n\n```\npsql -Umatrix synapse \u003c synapse_janitor.sql\n```\n\n## synapse_dumper.sh\nAllows easy backup of a matrix postgres database by dumping it to a compressed file.\n\n## synapse_startloop.sh\nScript which starts up synapse if it is not running. **NOTE**: This is configured for a matrix server which has the synchrotron\nworker enabled, if you do not use the synchrotron, just comment the block at the bottom.\n\n## Using these scripts\n\nThe startloop and the dumper are appropriate for use in crontab:\n\n```\n* * * * * /home/matrix/synapse_scripts/synapse_startloop.sh 2\u003e\u00261 \u003e\u003e/home/matrix/synapse_startloop.log\n0 3 * * * /home/matrix/synapse_scripts/synapse_dumper.sh 2\u003e\u00261 \u003e\u003e/home/matrix/synapse_dumper.log\n```\n","funding_links":[],"categories":["PLpgSQL","others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxwiki-labs%2Fsynapse_scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxwiki-labs%2Fsynapse_scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxwiki-labs%2Fsynapse_scripts/lists"}