gabriele97@lemmy.g97.top to Lemmy@lemmy.mlEnglish · 1 year agoHow to backup the DB before upgrading Lemmy?message-squaremessage-square3fedilinkarrow-up16arrow-down11file-text
arrow-up15arrow-down1message-squareHow to backup the DB before upgrading Lemmy?gabriele97@lemmy.g97.top to Lemmy@lemmy.mlEnglish · 1 year agomessage-square3fedilinkfile-text
Hi, Do you have any suggestions on how to backup the database or any other suggestions before upgrading Lemmy?
minus-squareHTTP_404_NotFound@lemmyonline.comlinkfedilinkEnglisharrow-up1·1 year agodocker exec -it database-container-name pg_dump -U lemmyusername -d lemmydatabasename > yourbackup.pgsql
docker exec -it database-container-name pg_dump -U lemmyusername -d lemmydatabasename > yourbackup.pgsql