mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
Database location? how to make a backup? #270
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Jan 4, 2023).
everything that is done in the kanban, be it adding tasks, images, attaching files, etc. Where is it saved? what is the path of the folder that contains the database? Please help
@meltyshev commented on GitHub (Jan 4, 2023):
Hi! There are 2 folders (
server/publicandserver/private) with uploaded files and the database itself. So you need to copy these two folders and backup the database withpg_dump planka > planka.sql. If you run Planka in Docker then you have to do it inside the container. I'm gonna add backup and restore services to the docker compose so it can be done with just one command.@ghost commented on GitHub (Jan 5, 2023):
In my folder (server/private) there is a folder called attachments and inside that folder a file called .gitkeep. On the other hand, in my folder (server/public) there are two folders one called project-background-images which contains the .gitkeep file and the other folder is called user-avatars with the same .gitkeep file.
I have the following questions:
@meltyshev commented on GitHub (Jan 9, 2023):
There are 4 volumes:
user-avatars,project-background-images,attachments,db-data. To delete all data you have to delete all docker volumes.Mount volumes and backup uploaded files in
server/publicandserver/private.To backup the database:
docker exec -t planka-postgres-1 pg_dumpall -c -U postgres > dump.sql.Mount volumes and copy uploaded files from the backup.
To restore the database:
cat dump.sql | docker exec -i planka-postgres-1 psql -U postgres.@vsaw commented on GitHub (Jan 16, 2023):
Duplicate of https://github.com/plankanban/planka/issues/128 therefore suggest to close this issue.
@Daniel-Why commented on GitHub (Oct 27, 2023):
Hi,where is the 2 folders(
server/publicandserver/private)? I can't find@vsaw commented on GitHub (Oct 27, 2023):
They are part of the docker container. You won't find them in your local file system unless you mount the folders with Docker to your local file system.
@Daniel-Why commented on GitHub (Nov 1, 2023):
thanks for you reply!I wanna know which docker container contains these files? I have searched in planka_planka_1 and planka_postgres_1, but I could not find them.
@Daniel-Why commented on GitHub (Nov 1, 2023):
😸
I found these folders. There is no folder named "server". The "public" and "private" folders are located in the container "plank_plank_1" at the path "/app".