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