mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-15 14:50:33 +00:00
760 B
760 B
Backup/Restore your instance
Backup
- Stop the Pleroma service.
- Go to the working directory of Pleroma (default is
/opt/pleroma
) - Run
sudo -Hu postgres pg_dump -d <pleroma_db> --format=custom -f </path/to/backup_location/pleroma.pgdump>
- Copy
pleroma.pgdump
,config/prod.secret.exs
and theuploads
folder to your backup destination. If you have other modifications, copy those changes too. - Restart the Pleroma service.
Restore
- Stop the Pleroma service.
- Go to the working directory of Pleroma (default is
/opt/pleroma
) - Copy the above mentioned files back to their original position.
- Run
sudo -Hu postgres pg_restore -d <pleroma_db> -v -1 </path/to/backup_location/pleroma.pgdump>
- Restart the Pleroma service.