3 # Heavily inspired by <https://docs.pleroma.social/backup.html>
6 mv /home/plom/pleroma_backup.tar /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'