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
15 chown plom:plom pleroma_backup.tar
16 mv pleroma_backup.tar /home/plom/