home · contact · privacy
Plemora migration scripts.
[config] / buster / setup_scripts / restore_pleroma.sh
1 #!/bin/sh
2 set -e
3 # Heavily inspired by <https://docs.pleroma.social/backup.html>
4
5 service pleroma stop
6 mv /home/plom/pleroma_backup.tar /tmp/
7 cd /tmp
8 tar xf pleroma_backup.tar
9 cp -a pleroma_backup/uploads/* /var/lib/pleroma/uploads/
10 cp -a pleroma_backup/etc_files/* /etc/pleroma/
11 su postgres -lc 'pg_restore --clean -d pleroma -v -1 /tmp/pleroma_backup/pleroma.pgdump'
12 service pleroma start