4 # Heavily inspired by <https://docs.pleroma.social/backup.html>
7 su postgres -lc 'pg_dump -d pleroma --format=custom -f /tmp/pleroma.pgdump'
9 mkdir -p pleroma_backup
10 mv pleroma.pgdump pleroma_backup
11 cp -a /var/lib/pleroma/uploads pleroma_backup/uploads
12 cp -a /etc/pleroma pleroma_backup/etc_files
13 tar cf pleroma_backup.tar pleroma_backup
14 chown plom:plom pleroma_backup.tar
15 mv pleroma_backup.tar /home/plom/