mirror of
https://git.yandere.love/skylar/pleromer-stuff.git
synced 2024-11-12 20:36:04 +00:00
corn job
This commit is contained in:
commit
af954eda2a
8
database-cleanup.sh
Normal file
8
database-cleanup.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
cd /opt/pleroma
|
||||
systemctl stop pleroma
|
||||
sudo -Hu pleroma MIX_ENV=prod mix pleroma.database prune_objects
|
||||
sudo -Hu pleroma MIX_ENV=prod mix pleroma.database vacuum full
|
||||
sudo -Hu postgres vacuumdb --all --analyze-in-stages
|
||||
systemctl start pleroma
|
||||
sudo -Hu postgres pg_repack -a -j 3
|
Loading…
Reference in New Issue
Block a user