Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongo DB backup #381

Open
colossus-digital opened this issue Jan 31, 2023 · 4 comments
Open

Mongo DB backup #381

colossus-digital opened this issue Jan 31, 2023 · 4 comments

Comments

@colossus-digital
Copy link

I'm still using the panic v1.2.1 because i'm not confident to upgrade to a newer version yet and first of all i'd like to have a backup of my db.

Is there a way to backup the entire panic's mongo db ?

I tried using some tools but the main problem is that i cannot authenticate to the db. What are the credentials to connect to the db?

tnks

@dillu24
Copy link
Collaborator

dillu24 commented Feb 8, 2023

@itsciccio

@dillu24
Copy link
Collaborator

dillu24 commented Feb 8, 2023

PANIC's MongoDB has not authentication set. The only requirement imposed is that it can only be accessed inside the panic internal network (i.e. by panic only).

If you want a backup of the DB you'd need to set a volume inside docker-compose for the db data. We had it in previous versions for PANIC, but forgot to add it for the latest versions. I suggest having a look at the docker compose file for the older versions

@colossus-digital
Copy link
Author

authentication removed from the command and it worked , tnks

docker exec -i mongo /usr/bin/mongodump --db panicdb --out /dump
docker cp mongo:/dump ./dump

but I can't find an older version of the docker compose, could you point me to right one, please ?

@dillu24
Copy link
Collaborator

dillu24 commented Feb 16, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants