aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/matrix/build/matrix-synapse/matrix-s3-async
blob: e435144f08f039796eed6f68d0a835a427fc94fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

cat > database.yaml <<EOF
user: $PG_USER
password: $PG_PASS
database: $PG_DB
host: $PG_HOST
port: $PG_PORT
EOF

while true; do
  /root/matrix-env/bin/s3_media_upload update-db 0d
  /root/matrix-env/bin/s3_media_upload --no-progress check-deleted /var/lib/matrix-synapse/media
  /root/matrix-env/bin/s3_media_upload --no-progress upload /var/lib/matrix-synapse/media matrix --delete --endpoint-url https://garage.deuxfleurs.fr 
  sleep 600
done